Comment 7 for bug 1548402

fwiw, for our curtin stuff, this is an easy fix by decoding the output of check_output in the py section of our curtin_userdata file.

cache_output = check_output(['apt-cache', 'policy', 'maas']).decode('utf-8')