def main(): from gi.repository import GLib utils.parse_args(include_name=False) monitor = AvahiMonitor() loop = GLib.MainLoop() loop.run()