This command takes the bytearray data and returns its zlib-format compressed version. The optional level gives the compression level, which may be any value from 0 (uncompressed) to 9 (maximally, most slowly compressed).