frequency.py