def get_week(date):
    date = datetime.datetime.strptime(date, '%Y-%m-%d')
week = date.strftime('%Y%U')
if week[-2:] == '00':
    pass
Python Week Numbers where all weeks have 7 days, regardless of year rollover