'Internal method for setting up the zlib compression and
decompression objects.'

def _init_zlib(self):

    self._zcomp_read = zlib.decompressobj()
    self._zcomp_write = zlib.compressobj(self.compresslevel)
