'returns playlist names that match query best as possible'

def fuzzy_playlists(self, query):

    query = query.upper()
    lookup = {n.upper(): n for n in self.playlists}
    results = [lookup[r] for r in difflib.get_close_matches(query, lookup)]
    return results
