STATS: Optimistic concurrency handling in Python library.