Working with bytes in Python 3