def set_params(self, **parameters):
    for (parameter, value) in parameters.items():
        setattr(self, parameter, value)
    return self
def set_params(self, **parameters):
    for (parameter, value) in parameters.items():
        setattr(self, parameter, value)
    return self