replace optparse with argparse module. Close #8