Replaced OptionParser with argparse.