How To Find Cumulative Frequency In Python