When I am reading individual elements from bytes it is returning a integer value rather than returning the hex code. This I am noticing with Python 3 only (tested in v3.10). Any idea how this can adjusted? Below are the code and output from both Python 2.7 (which works fine) and Python 3.10 (which is converting to integers).
Python 2.7 (works fine)
>>> test = b'\x00\x01\x00\x02\x00\x00\x00\x03'
>>> test[0]
'\x00'
>>> test[1]
'\x01'
>>>
Python 3.10 (converting output to integers).
>>> test = b'\x00\x01\x00\x02\x00\x00\x00\x03'
>>>
>>> test[0]
0
>>> test[1]
1
>>>