Making salt.modules.sensors python3 compatible