Because print is a function rather than a statement in python3, it might be better to just drop the print command from pdb. Someone working in Python3 is likely to type print(...) at the python3 pdb command line and expect it to work like the print function.