def split_by_comma_and_whitespace(cstr):
 return re.split('[\\s,]+', cstr)

def split_by_comma_and_whitespace ( cstr ) : return re . split ( '[\\s,]+' , cstr )
split a string both by commas and whitespace .