fix gdb script syntax error when using python 2.7