Can't use context manager with gzip.open until Python 2.7 (reported by Bryan Lunt)