Simple atomic operations for CPython