def _yyyywwd2yyyymmdd(year, week, weekday):
 d = datetime(year, month=1, day=4)
 d = ((d - timedelta((d.isoweekday() - 1))) + timedelta(days=(weekday - 1), weeks=(week - 1)))
 return (d.year, d.month, d.day)

def _yyyywwd2yyyymmdd ( year , week , weekday ) : d = datetime ( year , month = 1 , day = 4 ) d = ( ( d - timedelta ( ( d . isoweekday ( ) - 1 ) ) ) + timedelta ( days = ( weekday - 1 ) , weeks = ( week - 1 ) ) ) return ( d . year , d . month , d . day )
returns for given .