def split_comma_space(datai):
    """normalizes the form of a SET into a comma separated list instead of being mixed"""
    if ',' in datai:
        sline = datai.replace(',', ' ').split()
    else:
        sline = datai.split()
    return sline
