vecs = [(1, 1), (2, 3), (-1, 1)]
scalars = [2, 3, 2]
start = -5, 0
temp = zip([start] + vecs, [1] + scalars)
result = [data[0] for data in accumulate(temp, func)]
print(result)
Cumulative sum of vectors from a point