Just as a fun note. winpdb.org has the coolest debugger I've ever seen. It's basically a wrapper around pdb, which is already pretty nice, but with additional features of remote debugging as well as a GUI for setting breakpoints and examining the stack. You can start the GUI -- even on your local machine -- and then on the local/remote machine run your script through rpdb2. Then, just attach and go.
Pretty useful for debugging -- it's how I found the bugs in the spin parameter & particle vectors earlier today.