Converted to py3 to support latest gdb