import operator


def sort(word_freq):
    """
    Takes a dictionary of words and their frequencies and returns a list 
    of pairs where the entries are sorted by frequency 
    """
    return sorted(word_freq.iteritems(), key=operator.itemgetter(1), reverse=True)