Python: bytes to string conversion | python decode
You need to decode the bytes object to produce a string.
$ python
Python 3.7.0 (default, Jun 28 2018, 07:39:16)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> b'abcdef'
b'abcdef'
>>> b'abcdef'.decode('utf-8')
'abcdef'
>>>