[backends/pycommon]: use GLib.Mainloop instead of deprecated one