from nltk.corpora import wordnet as wn
for synset in list(wn.all_synsets('n')):
    print(synset)
for synset in list(wn.all_synsets(wn.NOUN)):
    pass
Getting a Large List of Nouns (or Adjectives) in Python with NLTK; or Python Mad Libs