'The function for summarizing RDAP events in to a unique list.
https://tools.ietf.org/html/rfc7483#section-4.5
Args:
events_json: A json dictionary of events from RDAP results.
Returns:
List: A unique list of found RDAP events dictionaries.'

def summarize_events(self, events_json):

    ret = []
    for event in events_json:
        event_dict = {'action': event['eventAction'], 'timestamp': event['eventDate'], 'actor': None}
        try:
            event_dict['actor'] = event['eventActor']
        except (KeyError, ValueError, TypeError):
            pass
        ret.append(event_dict)
    return ret
