gdb: s/print/gdb.write/ for python3.X