dedup results

def dedup_search_results(search_results):
    """ dedup results
    """

    known = set()
    deduped_results = []

    for i in search_results:

        username = i['username']

        if username in known:
            continue

        deduped_results.append(i)

        known.add(username)

    return deduped_results