removed check for unicode type in Python 3