Expose miniz to Python (#29228)
Summary:
Stacked PRs
* https://github.com/pytorch/pytorch/issues/29232 - Add zipfile serialization
* https://github.com/pytorch/pytorch/issues/29244 - Use custom CRC
* **https://github.com/pytorch/pytorch/issues/29228 - Expose miniz to Python**
This adds the miniz wrapper to Python along with some functionality so that it can operate on both files and buffers. Python's `zipfile` module is pretty slow (see https://github.com/pytorch/pytorch/issues/26573), but miniz solves most of the perf issues.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29228
Differential Revision: D18330945
Pulled By: driazati
fbshipit-source-id: 455a19bcb23b871d56e4233edbf897134b2c2f1d