Making salt.modules.hg python3 compatible