Fix get-freq.py.