[capi-sig] Python segfaulting on exit