fdist = FreqDist(dist).keys() dist_max = set(fdist[0:50])
keys()
list
fdist = FreqDist(dist).keys() dist_max = set(list(fdist)[0:50])