Updated getConsensus.py