def unicode_argv():
 args = []
 for arg in sys.argv:
  if isinstance(arg, bytes):
   arg = arg.decode(sys.getfilesystemencoding())
  args.append(arg)
 return args

def unicode_argv ( ) : args = [ ] for arg in sys . argv : if isinstance ( arg , bytes ) : arg = arg . decode ( sys . getfilesystemencoding ( ) ) args . append ( arg ) return args
like sys .