I have been messing around in gdb running some python scripts in the embedded python interpreter.
One very useful tip I found was enabling the full python stack trace enabling me to debug the scripts I was running.
To do this use
set python print-stack full