ZipFile is only a context manager in Python 2.7. (sdehaan)