Convert ArgumentParser to OptionParser to support python 2.6