use template wordfreq.py and add read_file function