Update inst_freq.py