def oo_split(string, separator=','):
 if isinstance(string, list):
  return string
 return string.split(separator)

def oo_split ( string , separator = ',' ) : if isinstance ( string , list ) : return string return string . split ( separator )
this splits the input string into a list .