title: How to call a method via a variable in threading?
body: <p>I'm using the threading class in Python... The variable device is a list of objects. Am I somehow able to convert a 'string' of a variable to translate into a method such that the threading class understands it?</p>
  
  <pre><code>def thread():
      var_string = 'some_func'
      index = 0
      some_thread = threading.Thread(target=device[index].&lt;var_string&gt; , args=())
  </code></pre>
  
  <p>So essentially, I would like to call <code>device[index].somefunc()</code></p>
  
  <p>Any help would be greatly appreciated!</p>