Update to use pyconsensus module