The pdb module can be used in interactive mode by using the run() command:
>>> import pdb_test
>>> import pdb
>>> pdb.run('pdb_test.Pdb_test(10).go()')
> <string>(1)<module>()
(Pdb)
In this case, the run() statement is from the debugger and will stop the execution before evaluating the first expression.