change from optparse to argparse

optparse replaced by argparse.
argparse is from python-2.7 in the standard library. For python 2.6, the bundled version of B3 is used.

Or http://www.python.org/dev/peps/pep-0389/#why-aren-t-getopt-and-optparse-enough