In Python 2.x, unicode is UnicodeType.  In Python 3.x, unicode (and UnicodeType) are set to str. UnicodeType is used at line 299. unicode is used in a variety of places.