convert standalone scripts to optparse from argparse for py2.6 compat