python hash_ring compatibility