Remove dependency on Python 2.7 by not using ZipFile context manager