Executing a list of imported functions
<p>I have a file with functions:</p>

<p>modules.py:</p>

<pre><code>def a(str):
    return str + ' A'

def b(str):
    return str + ' B'
</code></pre>

<p>I want to perform these functions in cycle. Something like:</p>

<p>main.py:</p>

<pre><code>import modules

modules_list = [modules.a, modules.b]
hello = 'Hello'

for m in modules_list:
    print m(hello)
</code></pre>

<p>The result should be:</p>

<pre><code>&gt;&gt;&gt; Hello A
&gt;&gt;&gt; Hello B
</code></pre>

<p>This code is work. I do not want to use decorators, because too much functions in <code>modules.py</code>.
What is the best way? Thanks.</p>
