Python Bytearray Printing
Use bytes.hex()
>>> x = bytearray([0x01,0x02,0xff])
>>> print(x.hex())
0102ff
It looks fine to me. It's just rendering bytes as ASCII characters whenever possible. After 15=\x0f
you have 49='1' and 113='q', etc.
See http://asciitable.com
>>> x = bytearray(b'\n\x91\x8c\xbc\xd4\xc6\xd2\x19\x98\x14x\x0f1q!\xdc|C\xae\xe0
\xdc\xf1\xf1')
>>> import binascii
>>> print binascii.hexlify(x)
0a918cbcd4c6d2199814780f317121dc7c43aee0dcf1f1
Use binascii if you want all of it to be printed as a hex string