This is just the default way that python prints bytes that don't have ascii mappings. If you didn't care about printable vs non-printable, and just want all the numbers, I'd do something like this:
b = b'\x00\xd0\xffp\x01p\x01 \x00 \xff\xa0\x00 \x01\x90\x00\xf0\x00\xf0\x00 \x01P' for byte in b: print(format(byte, "x"))
Output:0
d0
ff
70
1
70
1
20
0
20
ff
a0
0
20
1
90
0
f0
0
f0
0
20
1
50
Do you need the bytes that are ascii to remain in ascii format?