Added routines to find cumulative integrals
Fixed parse.py to be Python 3-compatible