import collections as c
val = 'bbbccaaadeeee'
val = sorted(val)
val = dict(c.Counter(val))
val = [(k, v)
       for k, v in sorted(val.items(), key=lambda k: k[1], reverse=True)]
val = val[:3:]
print(val)

3d1bc22628b2b746f18b80f9d4f0badea5bd3fb9
<mask token>

<mask token>
print(val)

<mask token>
val = 'bbbccaaadeeee'
val = sorted(val)
val = dict(c.Counter(val))
val = [(k, v) for k, v in sorted(val.items(), key=lambda k: k[1], reverse=True)
    ]
val = val[:3]
print(val)

import collections as c
val = 'bbbccaaadeeee'
val = sorted(val)
val = dict(c.Counter(val))
val = [(k, v) for k, v in sorted(val.items(), key=lambda k: k[1], reverse=True)
    ]
val = val[:3]
print(val)

import collections as c
val = 'bbbccaaadeeee'
val = sorted(val)
val = dict(c.Counter(val))
val = [(k, v)
       for k, v in sorted(val.items(), key=lambda k: k[1], reverse=True)]
val = val[:3:]
print(val)
