It's not really clear what tools can be used to detect possible occurences of data races in python scripts, python code, or python-based executables.
I know that at least for CPython, only one thread is allowed to be executed to the GIL. But that doesn't mean data races cannot occur (for instance when two threads write an attribute on a structure, each with a value).
So how can I detect such scenarios?