May I ask what the reason for the segfault was? I hope it didn't come from my MAFW code.
loop = gobject.MainLoop() gobject.threads_init() context = loop.get_context()