Switch to argparse since optparse is deprecated in Python 2.7

Let's switch to argparse since optparse is deprecated in Python 2.7.