a python PDB class