The safest way for threads to share data is not to share it. One thread puts a message in a queue, another takes it out, and the queue does all the locking. No two threads ever touch the same object at the same time. This design, producers that make work and consumers that do it, covers a large share of real concurrent programs, and the queue module, in the standard library, provides everything needed.
More lessons in Complete Python Programming