get rid of threads in prior of Py_AddPendingCall