Update analyze_frequencies.py

Change # 2.