support pre-3.3 gzip.open()