How to create a bytes object in Python?