term_sentiment.py updated

now all test passed