Python Reduce Initial Value Problem Solver