Data Compression using zlib in Python