Fix 34616

Updated pdb.py and test_pdb.py to match the code in the CPython patch.
Merge pull request #160 from slide/master

Fix 34616