How to Implement Fuzzy Matching in Python