Making salt.modules.dig python3 compatible