def setCompare(iter1, iter2):
    """
    Compares two groups of objects, returning the sets:
        onlyIn1, inBoth, onlyIn2
    """
    s1 = set(iter1)
    s2 = set(iter2)
    intersect = s1 & s2
    return s1 - intersect, intersect, s2 - intersect