title: Substitute class method with a string in Python
body: <p>Lets say that I want to do this</p>
  
  <pre><code>hashlibAlgo = "md5"
  Hash= hashlib.**"hashlibAlgo"**("blah blah blah").hexdigest()
  </code></pre>
  
  <p>How can I do that. If I substitute the name of a method with a string it obviously does not work. How can I make it work? In powershell is easy, but I cannot figure it in Python.</p>