How can I call an instance function?
<p>I have a class instance and I would like to call one of the instance functions</p>

<pre><code>udp_action = UDPActions( application = self.application )
func = getattr( udp_action, 'udp_' + opts['cmd'] + '_fired' )
</code></pre>

<p>but I'm getting the following error</p>

<pre><code>Values instance has no attribute '__getitem__' 
</code></pre>

<p>Where do I make the mistake?</p>
