Replacing getopts with argparse for command line i/o