def agree(x,y):
    """
    x and y are either strings, or lists of strings.
    Return True if they are equal strings, or one
    string is contained in other list, or lists intersect.
    Used to say when output of two voting systems "agree", 
    even if one or both of them outputs lists of winners.
    """
    if type(x)==type(str()): x = [x]
    if type(y)==type(str()): y = [y]
    xset = set(x)
    for yj in y:
        if yj in xset: return True
    return False