gzip.open(...).mode == 1, not a string