def _validate_str_list(arg):
 if isinstance(arg, six.string_types):
  ret = [arg]
 elif (isinstance(arg, Iterable) and (not isinstance(arg, Mapping))):
  ret = []
  for item in arg:
   if isinstance(item, six.string_types):
    ret.append(item)
   else:
    ret.append(str(item))
 else:
  ret = [str(arg)]
 return ret

def _validate_str_list ( arg ) : if isinstance ( arg , six . string_types ) : ret = [ arg ] elif ( isinstance ( arg , Iterable ) and ( not isinstance ( arg , Mapping ) ) ) : ret = [ ] for item in arg : if isinstance ( item , six . string_types ) : ret . append ( item ) else : ret . append ( str ( item ) ) else : ret = [ str ( arg ) ] return ret
ensure arg is a list of strings .