Add frequency.py and term_sentiment.py