def exist_file(x):
    if not path.isfile(x):
        raise argparse.ArgumentError("{0} does not exist".format(x))
    return x
'Type' for argparse - checks that file exists but does not open it
dataset/ETHPy150Open ericgibert/supersid/supersid/ftp_to_Standford.py/exist_file