From getopt to argparse