Making salt/state python3 compatible