Making salt.modules.devmap python3 compatible