Solving Ode Using Python Dictionaries Format