Use argparse instead of getopt

[argparse](http://docs.python.org/2/library/argparse.html) is preferred to [getopt](http://docs.python.org/2/library/getopt) as of the publishing of [PEP 389](http://www.python.org/dev/peps/pep-0389/)