rs/zkfarmer — pull request #9 by vincentbernat (2012-12-20 17:41:16+00:00)
Title: Fix/kazoo rewrite

Use kazoo instead of zc.zk. Kazoo does not rely on the official Python binding and is more consistent. Also, it exposes the "connection lost/suspended/reconnected" events which allows one to correctly handle Zookeeper availability.

The second change is quite invasive but the threads synchronization was difficult to understand and it was difficult to get something reliable if Zookeeper becomes unavailable.