I was trying this, but can't seem to get it working. I fetched the linked .deb package and installed it. In one terminal I started "xmimd -v" locally on the N9. It immediately reports "Server running" and stays there (not daemonized). On another terminal, still locally on the N9, I start a python GTK program. Nothing I do seem to trigger the virtual keyboard.
Being puzzled by this, I also tried setting the GTK_IM_MODULE and XMODIFIERS environment variables, although I understood the text as if it was only needed for chroot and remote environments.