Create consensus.py