odeint integrator with events