Support for Python 3 in Unicode management code