def highest(candidates):
    """Returns the highest-scoring candidate element"""
    result = sorted(candidates.values(), key=lambda x: x['score'], reverse=True)
    if len(result) == 0:
        return None
    return result[0]