I can open a gzip file easily as follows:
import gzip import sys file1 = gzip.open(sys.argv[1], \'rb\')
I tried to use argparse: