Making salt.states.hg python3 compatible