Code from an iPython notebook, based on:
http://nealcaren.web.unc.edu/an-introduction-to-text-analysis-with-python-part-1/

This notebook walks the user through analyzing a single string of text by creating custom dictionaries of positive and negative words.