I'm not an expert on pdb, and it might just be a typo in your sample code and not what you actually tried, but don't you need to type the following into pdb to print a variable?
(Pdb) p _version
Versus just plain
(Pdb) _version
Sorry if that's not what's going on, that's just the only thing I see amiss. Good luck!