i have a string variable which comes with function names, how do I call the function in Python?
<p>I have a string variable which comes with different function names, and I have a file which contains an often different set of functions which matchs the content of the string,  how do I call that function in Python?</p>

<p>Example:</p>

<p>In File 1</p>

<pre><code>def function1: ...
def function2: ...
def function3: ...
</code></pre>

<p>In File 2</p>

<pre><code>functionname = "function2"
</code></pre>

<p>I need to call the function2 from the File1 from this file</p>
