def validate_stringlist(s):
if type(s) is str:<EOL><INDENT>return [ v.strip() for v in s.split('<STR_LIT:U+002C>') ]<EOL><DEDENT>else:<EOL><INDENT>assert type(s) in [list,tuple]<EOL>return [ str(v) for v in s ]<EOL><DEDENT>
return a list