Debugging in python with pdb and dropping into a ‘proper’ session