Solving Second Order Ode In Python Mean