Making salt.output.compact python3 compatible