Get the year and week for a given timestamp.

def get_year_week(timestamp):
    """Get the year and week for a given timestamp."""
    time_ = datetime.fromtimestamp(timestamp)
    year = time_.isocalendar()[0]
    week = time_.isocalendar()[1]
    return year, week