fixes output.txt (last item was cut off). implements tweet_sentiment.py