Sentiment analysis attempt in Python