Completed spellchecker function in spelling.py returning sorted_guesses.