Python gzip: OverflowError size does not fit in an int
This seems to be a bug in python 2.7
https://bugs.python.org/issue23306
From inspecting the bug report, it does not look like there is a pending solution to it. Your best bet would be to move to python 3 which apparently did not exhibit this bug.