def is_expired(date):
    today = datetime.now()
    date = (date if date else datetime.strftime('%Y-%m-%d'))
    return (False if (datetime.strptime(date, '%Y-%m-%d') >= today) else True)
def is_expired(date):
    today = datetime.now()
    date = (date if date else datetime.strftime('%Y-%m-%d'))
    return (False if (datetime.strptime(date, '%Y-%m-%d') >= today) else True)