def get_start_date():
 today = datetime.today()
 date = datetime((today.year - 1), today.month, today.day, 12)
 weekday = datetime.weekday(date)
 while (weekday < 6):
  date = (date + timedelta(1))
  weekday = datetime.weekday(date)
 return date

def get_start_date ( ) : today = datetime . today ( ) date = datetime ( ( today . year - 1 ) , today . month , today . day , 12 ) weekday = datetime . weekday ( date ) while ( weekday < 6 ) : date = ( date + timedelta ( 1 ) ) weekday = datetime . weekday ( date ) return date
returns a datetime object for the first sunday after one year ago today at 12:00 noon .