Pure python implementation of some functionalities of glib/gobject