Updated with zlib support for Python