Making salt.grains.core python3 compatible