A very useful function in the Python Numpy library for processing data arrays.
np.cumsum(your_mom, dtype=long)