It seems that the [scipy.integrate]( http://docs.scipy.org/doc/scipy/reference/integrate.html) package has what we need.