Bitcoin Miner in Python