def shlex_split(s, **kwargs):
 if isinstance(s, six.string_types):
  return shlex.split(s, **kwargs)
 else:
  return s

def shlex_split ( s , ** kwargs ) : if isinstance ( s , six . string_types ) : return shlex . split ( s , ** kwargs ) else : return s
wrapper around shlex .