fixed GObject.MainLoop call for python-gobject 3.8