<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def change_event_params(self, handler, **kwargs):
 """ This allows the client to change the parameters for an event, in the case that there is a desire for slightly different behavior, such as reasigning keys. handler - the handler object that the desired changes are made to. kwargs - the variable number of keyword arguments for the parameters that must match the properties of the corresponding event. """

        if not isinstance(handler, Handler):
            raise TypeError("given object must be of type Handler.")
        if not self.remove_handler(handler):
            raise ValueError("You must pass in a valid handler that already exists.")

        self.add_handler(handler.type, handler.actions, **kwargs)
        self.event = handler.event