title: using wild card when listing directories in python
body: <p>how can I use wild cars like '*' when getting a list of files inside a directory in Python?  for example, I want something like:</p>
  
  <pre><code>os.listdir('foo/*bar*/*.txt') 
  </code></pre>
  
  <p>which would return a list of all the files ending in .txt in directories that have bar in their name inside of the foo parent directory.</p>
  
  <p>how can I do this?</p>
  
  <p>thanks.</p>