title: Convert string to class function
body: <p>I currently have an import called <code>utilities</code></p>
  <p>In this import there are two functions, <code>utilities.func_1</code> and <code>utilities.func_2</code></p>
  <p>Now I know I can do <code>print(dir(utilities))</code> to see the dictionary of functions this object has.  In this case it outputs</p>
  <pre><code>['PIPE', 'Popen', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'func_1', 'func_2']
  </code></pre>
  <p>My question is assume I have the string <code>x = 'func_1'</code> how would I go about being able to say, call the utilities function from this string.</p>
  <p>So for example, how would I get the result of this</p>
  <pre><code>utilities.func_1(var1, var2)
  </code></pre>
  <p>by typing something like this</p>
  <pre><code>x = 'func_1'
  utilities.x(var1, var2)
  </code></pre>