Personally I'd recommend switching to Tkinter, as good as Gtk is, my experience says Tkinter is the way forward for Python UI frameworks.
Regarding using ptrace, you need to be VERY careful what you do there. In my experience on Ubuntu specifically it's quite buggy, and I've seen many a kernel...