making a class behave like a bunch of keyword arguments in python
<p>So I have a class that will have a lot of attributes. Is there a way to make this class behave in a way that I can pass it as a **kwarg to a function?</p>

<pre><code>class Foo ( object ) :
    def __init__( self ) :
         self.a = 'a'
         self.b = 'b'

foo = Foo()
somefunc(**foo)
</code></pre>

<p>I cannot find the right operator to overload.</p>

<p>Thanks a lot!</p>
