title: Use the wranings module or write directly to stderr in python?
body: <p>I would like to print just the warning messages in python rather than the message and the code similar to what has been asked in this question:
  <a href="https://stackoverflow.com/q/2187269/3262406">Python: Print only the message on warnings</a> </p>
  
  <p>The solutions to the above question suggest that one can replace the implementation of  the <code>warnings.showwarnings()</code> function with a implementation of their own (<a href="https://stackoverflow.com/q/5626193/3262406">monkeypatching</a>) to achieve that goal. </p>
  
  <p>Would it not be easier to just <a href="https://stackoverflow.com/q/5574702/3262406">write to <code>stderr</code></a> instead? Are there reasons to choose the <code>warnings</code> module over simply writing to <code>stderr</code>?</p>