**kwargsexpects a dictionary; the easiest way to support your class dict(ed: in addition to direct inheritance from dict, who also works) - inherit from collections.MutableMappingthat, you will need to determine __setitem__, __getitem__and __delitem__and give you the rest of the interface dictis free.
dict, __setattr__ __getattr__ . recipe, - , - , .