def _normalize_args(args):
 if isinstance(args, six.string_types):
  return shlex.split(args)
 if isinstance(args, (tuple, list)):
  return [str(arg) for arg in args]
 else:
  return [str(args)]

def _normalize_args ( args ) : if isinstance ( args , six . string_types ) : return shlex . split ( args ) if isinstance ( args , ( tuple , list ) ) : return [ str ( arg ) for arg in args ] else : return [ str ( args ) ]
return args as a list of strings .