Switch to argparse from optparse since the latter is deprecated in Python 2.7.
Merge pull request #1 from nth10sd/switchToArgparse

Switch to argparse since optparse is deprecated in Python 2.7