add almost_linear processing to ode.py