Implementation of the Raft Consensus Algorithm for managing a replicated log in Python