https://eslizn.com/posts/python-implementation-of-zip-compression/