version of deprecated frequency_log.py script clonned for modification and future development.