Split zlib.py into separate pieces