Gdb Error While Executing Python Script