How to define a mapping table characters for use with a bytes object in
Python?