def u(s):
    return s if PY3 or type(s) is unicode else unicode(s.encode('string-escape'), "unicode_escape")
Mock unicode function for python 2 and 3 compatibility.
dataset/ETHPy150Open maebert/jrnl/jrnl/util.py/u