title: Call built in type-function manually with arguments
body: <p>I want to call built in str functions manually (in this case as randomness) without using eval</p>
  
  <pre class="lang-py prettyprint-override"><code>funcs = [str.lower, str.upper]
  random.choice(self.funcs)("test")
  </code></pre>
  
  <p>or </p>
  
  <pre class="lang-py prettyprint-override"><code>"test".(random.choice(self.funcs))
  </code></pre>