Making salt.modules.grains python3 compatible