sort dictionary
sorted(dictionary, key=dictionary.get, reverse=True) [(i, dictionary[i]) for i in sorted(dictionary, key=dictionary.get, reverse=True)]