def get_last_week(the_date):
    """
    Get last ISO week of the date parameter
    :param the_date: the date parameter
    :return: last week and it's year
    """
    current_year, current_week, current_weekday = the_date.isocalendar()
    if current_week == 1:
        last_week = the_date.replace(year=current_year - 1, month=12, day=31)
        last_year = the_date.year - 1
    else:
        last_week = current_week - 1
        last_year = the_date.year
    return last_week, last_year
