Fix python package of the mining, ref #216