title: Ignoring python warnings
body: <p>I want to ignore all the <code>UserWarning</code> in my dev environment so that they are not printed into my error log file.</p>
  
  <p>I've read the documentation of <code>warnings</code> module, and tried something like:</p>
  
  <pre><code>import warnings
  import the_module_that_warns
  
  warnings.simplefilter("ignore", UserWarning)
  </code></pre>
  
  <p>But <code>UserWarning</code> still get printed, why's that?</p>