Making salt.modules.state python3 compatible