code: def extant_file(x):
      
      if not os.path.exists(x):
          raise argparse.ArgumentError("{0} does not exist".format(x))
      return x
docs: 'Type' for argparse - checks that file exists but does not open.