This chunk of code demonstrates the use of wordnet-blast (https://code.google.com/p/wordnet-blast/) and how it can be used to get all synonyms of a collection of words.