How to get a byte from a bytes object in Python?