Pdb and "Script (Python)" objects

@pgg if you're going to do @jaroel's approach, don't forget to check alternatives to pdb in Pdb;pdb.set_trace() alternative - there are some real gems there.