<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find(self, query, threshold=None):
 """Simply return the best match to the query, None on no match. 'Ham' 'Spam' """

        results = self.search(query, threshold)
        if results:
            return results[0][0]
        else:
            return None