def eventfreq(year, month):
    F = fieldict('DOT1000.txt')
lst = [i[1] for i in F if (i[1].year == year) & (i[1].month == month)]
return [(i, lst.count(i)) for i in set(lst)]
need to create a list from a text file