Fix gdb python errors