Making salt.output.compact python3 compatible
Merge pull request #17756 from nmadhok/output-python3-compact

Making salt.output.compact python3 compatible