That looks more like the Python zip function, not zipfile compression: 2. Built-in Functions — Python 3.3.7 documentation