Solving Differential Equation In Python