compound byte and string for python 3