Making salt.utils.error python3 compatible