<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _update_object(object_key: str, event: Event):
 """Update the events list and events data for the object. - Adds the event Id to the list of events for the object. - Adds the event data to the hash of object event data keyed by event id. Args: object_key (str):
 Key of the object being updated. event (Event):
 Event object """

    events_list_key = _keys.events_list(object_key)
    events_data_key = _keys.events_data(object_key)
    event_dict = deepcopy(event.config)
    event_dict.pop('id')
    DB.append_to_list(events_list_key, event.id, pipeline=True)
    DB.set_hash_value(events_data_key, event.id, json.dumps(event_dict),
                      pipeline=True)