Python Reduce Initial Value Problem Example