Python program to analyze a large number of text files in several directories in order to plot frequency of data results