title: Getattr on package in Python
body: <p>In Python, is there an equivalent of doing <code>getattr()</code> on a module for packages? In other words, is there a way to search for a function within a package like the one below?</p>
  
  <pre><code>Intents/
  |-- __init__.py
  |-- foo.py
  |-- bar.py
  |-- baz.py
  </code></pre>