added gobject.threads_init() back in for testing.