Made consensus.py alot more pep8

Same as with blockchain.py, now only getting minimal pep8 warnings.