better basestring py2/py3 compat