debugging
from IPython.core.debugger import Tracer Tracer()() #this works like browser() in R #just put it inside code where you want to stop