Use OptParse instead of sys.argv and len(sys.argv)