python: fixed gil_guard