Forgot to import scipy.integrate, so it seems.