title: Python dynamic function names
body: <p>I'm looking for a better way to call functions based on a variable in Python vs using if/else statements like below. Each status code has a corresponding function</p>
  
  <pre><code>if status == 'CONNECT':
      return connect(*args, **kwargs)
  elif status == 'RAWFEED':
      return rawfeed(*args, **kwargs)
  elif status == 'RAWCONFIG':
      return rawconfig(*args, **kwargs)
  elif status == 'TESTFEED':
      return testfeed(*args, **kwargs)
  ...
  </code></pre>
  
  <p>I assume this will require some sort of factory function but unsure as to the syntax</p>