[py3k] work with str (and not bytes) in python 3 [applied]