Added pdb support (borrowed code from Gallina's python.el).