Any utility function in python which returns value when passed object and attribute to it?
<p>Like we have in Java Beans util where you pass object and the property name it gives you the value do we have anything similar in python:</p>

<pre><code>def attr(obj, attr)
    return obj.attr
</code></pre>
