string intern for py2 and py3