def lastweek(curr_date):
yearS=curr_date[0:4]
monthS=curr_date[4:6]
dayS=curr_date[6:8]
stat_date=date(int(yearS), int(monthS), int(dayS))
week=date.strftime(stat_date, '%W')
if(week==0):
lastYearDay=date(stat_date.year()-1,'12','31')
if(date.)
date.strftime(stat_date,'%W')