I was trying out optparse and this is my initial script.
optparse
#!/usr/bin/env python import os, sys from optparse import OptionParser parser = Optio
optparse is deprecated; you should use argparse in both python2 and python3
argparse
http://docs.python.org/library/argparse.html#module-argparse