Gdb Error While Executing Python Programs On List