def validate_stringlist(s):
 if (type(s) is str):
  return [v.strip() for v in s.split(',')]
 else:
  assert (type(s) in [list, tuple])
  return [str(v) for v in s]

def validate_stringlist ( s ) : if ( type ( s ) is str ) : return [ v . strip ( ) for v in s . split ( ',' ) ] else : assert ( type ( s ) in [ list , tuple ] ) return [ str ( v ) for v in s ]
return a list .