Phil> This patch addresses PR python/10806. It is mechanical replacement of Phil> the PyGILState_Ensure/Release with the more recently introduced Phil> ensure_python_env. Phil> OK? This is fine, thanks. Tom