def is_due_next_monday(p_todo):
    """ Returns True when today is Friday (or the weekend) and the given task
    is due next Monday.
    """
    today = date.today()
    due = p_todo.due_date()

    return due and due.weekday() == 0 and today.weekday() >= 4 and \
        p_todo.days_till_due() <= 3
Returns True when today is Friday (or the weekend) and the given task
    is due next Monday.