For detailed explanation, please refer to my blog post :
http://www.filipyoo.com/topic-and-sentiment-analysis-using-twitter-api/
Topic and sentiment analysis using Tweepy, TextBlob, and NLTK.
Starting with getting the tweets stream using Tweepy, see the getStreamingTweets.py
See the sentimentAnalysis.py file for detail on function used to plot the tweets sentiments, the sentiment pie graph or the word cloud of most used hashtags.