Distributed python semaphore based on Memcache