correct algorithm in term_out.py updating sentiments dict