You do not do bytes("bla bla") or just b"bla bla", you need to specify an encoding type like bytes("bla bla","utf-8") because it needs to know what was the original encoding before turning it into an array of numbers.