title: How do I dynamically import all *.py files from a given directory AND all sub-directories?
body: <p>Suppose I have a bunch of Python files underneath one common directory, but within that, an arbitrary number of sub-directories may exist:</p>
  
  <pre><code>/first/foo.py
  /first/bar.py
  /first/fizz/buzz.py
  /first/numbers/one.py
  /first/numbers/two.py
  </code></pre>
  
  <p>I have some arbitrary files where I want to import all of these. Manually, I could do:</p>
  
  <pre><code>import first.foo
  import first.bar
  import first.fizz.buzz
  import first.numbers.one
  import first.numbers.two
  </code></pre>
  
  <p>But instead I'd like to be able to do something like:</p>
  
  <pre><code>import_everything_under('first')
  </code></pre>
  
  <p>I know that a similar question has already popped up: <a href="https://stackoverflow.com/questions/27945764/recursively-import-all-py-files-from-all-folders">Recursively import all .py files from all folders</a></p>
  
  <p>But the given answers and alleged duplicates do NOT answer this question.</p>
  
  <hr>
  
  <p>This question was flagged as a possible duplicate of: <a href="https://stackoverflow.com/questions/1057431">How to load all modules in a folder?</a></p>
  
  <p>Again, that does NOT answer this question. The answer given to that question is not recursive - it would ONLY import items from the immediate directory and does NOT include scripts in sub-directories, which I need for my use-case.</p>