py3: add unicode, basestring and long funcs, removed in Py3