Update consensus.py

duplicate package imported