Switching from argparse to optparse to make code compatible with older python.