Update freq.py