In the Python VM there is no atomic increment bytecode. So `counter += 1` should be exactly same as `counter = counter + 1`.
Here is an example what thread safe increment looks like in Python:
https://julien.danjou.info/atomic-lock-free-counters-in-pyth...
You need to lock it explicitly.
Note that `INC` instructor for x86 architecture needs explicit hints/locks as well, so this should suprise anyone: