def is_unicode(obj):
    if PY2:
        # Python 2
        return isinstance(obj, unicode)
    else:
        # Python 3
        return isinstance(obj, str)
Return True if `obj` is unicode
dataset/ETHPy150Open winpython/winpython/winpython/py3compat.py/is_unicode