term_sentiment.py fix