basestring to str fix #py3