Making salt.states.ports python3 compatible