code: def compress(content, method='gzip'):
    
    if method == True:
      method = 'gzip' # backwards compatibility
  
    method = (method or '').lower()
  
    if method == '':
      return content
    elif method == 'gzip': 
      return gzip_compress(content)
    raise NotImplementedError(str(method) + ' is not currently supported. Supported Options: None, gzip')
docs: Compresses file content.
  
    Required:
      content (bytes): The information to be compressed
      method (str, default: 'gzip'): None or gzip
    Raises: 
      NotImplementedError if an unsupported codec is specified. 
      compression.DecodeError if the encoder has an issue
  
    Return: compressed content