I am using python3.5 and I wish to write output I get in hexadecimal bytes (b'\x00', b'\x01' etc) to python strings with \x00 -> 0 and \x01 -> 1 and I have this feeling it can be done easily and in a very pythonic way, but half an hour of googling still make me think the easiest would be to make a dictionary with a mapping by hand (I only actually need it from 0 to 7).
Input Intended output
b'\x00' 0 or '0'
b'\x01' 1 or '1'
etc.
bmeansbytes, not binary.\x00is not string0but char with code0which can't be displayed so Python shows its code.b"\x0F"-"F"or"15"?