A Python implementation of Bitcoin miner