Replace opt parse with argparse.