Update consensus.py