Small python script looks up words in dictionary and returns word type - like noun, verb, etc.