Hi, I'm facing the same problem right now and get also a segmentation fault so the full code would be very helpfull. Thanks!
import gobject gobject.threads_init()