Fix for Python3 bug in argparse.

See bug report http://bugs.python.org/issue16308 for more information.