How to use __call__?
<p>For example, I need for class calling returns string.</p>

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

    def __call__(self):
        return self.bar
</code></pre>

<p><code>Foo</code> calling returns <code>Foo object</code>.</p>

<pre><code>Foo()
&lt;__main__.Foo object at 0x8ff6a8c&gt;
</code></pre>

<p>What should I do to class returns string or other? How to use <code>__call__</code>?</p>
