def parse_two_part_term(term, delim=','):
    """Parse a term assuming [ [part1],[part2] ]"""
    valid = False
    part1 = ''
    part2 = ''
    if term.find(delim) != -1:
        valid = True
        field1 = term.split(delim, 1)[0]
        if bool(field1):
            part1 = field1
        field2 = term.rsplit(delim, 1)[-1]
        if bool(field2):
            part2 = field2
    return valid, part1, part2
