Replaced optparser module with argparse.

As of 2.7 optparser is deprecated. The currently developed module to
replace it is argparse. argparse.ArgumentParser() vs.
optparse.OptionParser()