Good article about synchornization mechanism in python: http://effbot.org/zone/thread-synchronization.htm