solve term_sentiment.py