title: Wildcard list matching in python
body: <p>I have a list of strings</p>
  
  <pre><code>l = [
     '/api/users/*',
     '/api/account/*
  ]
  </code></pre>
  
  <p>And paths are like</p>
  
  <pre><code>/api/users/add/
  /api/users/edit/1
  /api/users/
  /api/account/view/1
  /api/account/
  </code></pre>
  
  <p>How can I perform filter for the paths if they exist in the list <code>l</code>.</p>
  
  <p>condition like</p>
  
  <pre><code>'/api/users/add/' in l
  </code></pre>
  
  <p>should return <code>True</code> and for all given paths above.</p>