Cumulative Sum Simulation In Python