def xor(*xs):
    """Normalizes all of the arguments to Boolean values and then returns
    the Boolean exclusive-or of all the values. Specifically, this
    function returns True if and only if an odd number of the
    arguments are truthy and False otherwise.

    """
    final = False
    for x in xs:
        if x:
            final = not final
    return final
