Convert bytes to a string in Python 3 I captured the standard output of an external program into a bytes object: