Attempt to fix build on Travis

AttributeError: type object 'gi._glib.MainLoop' has no attribute 'new'