An implementation of Gossip Algorithm in Python