def all_true (seq) :
    """Returns True if all elements of `seq` are true,
       otherwise returns first non-true element.
    """
    for e in seq :
        if not e :
            return e
    else :
        return True