pymtranslate/translator.py
def translate(self, word):
        """
        pass in a word string that you
        would like to see probable matches for.
        """
        if (word not in self.transmissions):
            raise NoMatchError('no matches found')
        else:
            trans = self.transmissions[word]
            # print out a sorted list of all non-zero trans
            return sorted(((k, v) for k, v in trans.iteritems() if v != 0), 
                                                                reverse=True)
def translate(self, word):
        """
        pass in a word string that you
        would like to see probable matches for.
        """
        if (word not in self.transmissions):
            raise NoMatchError('no matches found')
        else:
            trans = self.transmissions[word]
            # print out a sorted list of all non-zero trans
            return sorted(((k, v) for k, v in trans.iteritems() if v != 0), 
                                                                reverse=True)
pass in a word string that you
        would like to see probable matches for.