Making salt.output.grains python3 compatible