Copy a property-decorated member to a new class
<p>I am trying to copy all the methods and attributes from a class to an instance of another class. Unfortunately I am having issues with properties. Here's an example:</p>

<pre><code>class ToAdd(object):
    @property
    def foo(self):
        return 'foo!'

class Base(object):
    pass

b = Base()
for item, val in ToAdd.__dict__.iteritems():
    if not item.startswith('__'):
        setattr(b, item, val)
</code></pre>

<p>When calling <code>b.foo</code> I expect to get <code>'foo!'</code>, but instead it returns <code>&lt;property at 0x104a73d08&gt;</code>.</p>

<p>Note that this is akin to a mixin, but I want it to work on instances instead of classes.</p>
