The default argument of Model.optimize() is $$\texttt{None}$$, which tells Gurobi there is no callback function. So you could do something like this:
m._cb = subtourelim  # or Nonem.optimize(m._cb)