Making salt.modules.mine python3 compatible