title: Make Python error messages more verbose/detailed/specific - Is it possible?
body: <p>I'm getting an error in several API calls after setting up a test environment on a different server. 99% Sure it's a MySQL thing, but the error that's returned isn't helpful at all:</p>
  
  <pre><code>global name 'sys' is not defined"
  </code></pre>
  
  <p>I've imported <code>sys</code> (and it works fine on my original, live version), and also tried to add <code>sys</code> to my <code>requirements.txt</code> on the new server, but apparently there's no pip/easy_install package for it.</p>
  
  <p>Long story short, is there any way to make that error message return more information so I have a hope of debugging it? Thanks :)</p>