PyMOTW: gzip

The gzip module provides a file-like interface to GNU zip files, using zlib to compress and uncompress the data.

Read more at pymotw.com: gzip