Switched the mainloop to use tornado instead of gobject