from functools import reduce


def is_multiday(start, end):
    """Return True if event is multiday.

    Fancy way to compare 'year', 'month' and 'day' attributes of two objects
    and return True only if all pairs match.
    """

    return not reduce(lambda x, y: (x is y is True),
                      map(lambda x: (getattr(end, x) == getattr(start, x)),
                          ['year', 'month', 'day']))