glib: make the python bindings work