The Python module zlib allows you to compress a typical text string to about one half its original size. A handy feature when you have to transmit or save a large amount of text or data. It saves you time both writing and later reading back the compressed file. The data can then be decompressed to obtain the original information. The module also contains a crc32() function to keep track of the data integrity with a checksum.