latexpdf fixes
there is no "unicode" type in Python 3