Alternate "rt" and "r" gzopen file flag (the "t" is an addition of Python3
gzip, and failed with Python2 on Windows)