def allsundays(year):
    """This code was provided in the previous answer! It's not mine!"""
d = date(year, 1, 1)
d += timedelta(days=6 - d.weekday())
while d.year == year:
    yield d
d += timedelta(days=7)
Dict = {}
for wn, d in enumerate(allsundays(2010)):
    Dict[wn + 1] = [(d + timedelta(days=k)).isoformat() for k in range(0, 7)]
print(Dict)
Как я могу получить текущую неделю с помощью Python?