Update consensus.py

duplicate package imported
Merge pull request #40 from master-zhuang/master

Update consensus.py