Add pdb for python; refactoring