Python GEKKO and SciPy ODEINT are used to find a solution to the differential equation: k * dy/dt = - t * y. An analytic solution is available with the method of "separate and integrate". More complex differential equations may require a numeric solution. Additional tutorial information is available from:
ODEINT: http://apmonitor.com/pdc/index.php/Main/SolveDifferentialEquations
GEKKO: http://apmonitor.com/wiki/index.php/Main/GekkoPythonOptimization
GEKKO solves not only ODEs but also large scale systems of differential and algebraic equations in simulation and for optimization. It is freely available with "pip install gekko".