def date_gen(start_date, offset=0):
    start = offset * 7
    for i in itertools.count(start):
        yield start_date + datetime.timedelta(i)
generator that returns the next date, requires a datetime object as
dataset/ETHPy150Open gelstudios/gitfiti/gitfiti.py/date_gen