Use instance ThreadLocal in PythonContext instead of ThreadStatic. This ensures contexts are isolated to specific engines.