def write_compressed(path, content):
 with gzip.open(path, 'wb') as f:
  f.write(content)

def write_compressed ( path , content ) : with gzip . open ( path , 'wb' ) as f : f . write ( content )
write a compressed file to path .