Using string as variable name
<p>Is there any way for me to use a string to call a method of a class? Here's an example that will hopefully explain better (using the way I think it should be):</p>

<pre><code>class helloworld():
    def world(self):
        print "Hello World!"

str = "world"
hello = helloworld()

hello.`str`()
</code></pre>

<p>Which would output <code>Hello World!</code>.</p>

<p>Thanks in advance.</p>
