After years of research programming in Matlab, I miss the way I could pause a program mid-execution and inspect the variables, do plotting, save/modify data, etc. via the intera
pdb is what you're looking for - just put a call to pdb.set_trace() wherever you want to drop into an debugger.
pdb.set_trace()