def accumulate(iterable, func=operator.add):
    it = iter(iterable)
    total = next(it)
    yield total
    for element in it:
        total = func(total, element)
        yield total
Local implementation of TaskQueueService.ModifyTaskLease.
dataset/ETHPy150Open jsvine/markovify/markovify/chain.py/accumulate--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/taskqueue/taskqueue_stub.py/TaskQueueServiceStub._Dynamic_ModifyTaskLease