errorobj  caching with PyThreadState_GetDict