Make tests pass in python3

In python 3 a string object created with b'string' is actually a byte
array, so b'a' != 'a'[0] which was the case in python2.