Solving Second Order Ode In Python Code