fixing build on py3 unicode to str compare