Changes a dictionary into a list of tuples.

def tuplecount(text):
    '''Changes a dictionary into a list of tuples.'''
    worddict = wordcount(text)
    countlist = []
    for key in worddict.keys():
        countlist.append((key,worddict[key]))
    countlist = list(reversed(sorted(countlist,key = lambda x: x[1])))
    return countlist