Making salt.states.host python3 compatible