Convert argparse to optparse to support py2.6.