Moving python code for frequency table back to DEV