Changes for python 3, invoke bytes_to_str where str expected