import collections
tag_weight = {k: int(v) for k, v in list(tag_weight.items())}
count = collections.Counter(tag_weight)
print(count.most_common(10))
print(count.most_common())
sorting dictionary by numeric value