switch from optparse to argparse:

optparse is deprecated.