improves printing of tokenized words in python