def __init__(self, **kwargs): # Store arbitrary attributes directly on the instance for key, value in kwargs.items(): setattr(self, key, value) ...