Python implementation of Truthcoin's consensus mechanism