title: Changing reported <file> in the traceback
body: <p>there</p>
  
  <p>I'm doing some custom module importing using the imp package on Python 2.7, namely creating a module from a string</p>
  
  <pre><code>exec myScript in module.__dict__
  </code></pre>
  
  <p>What bothers me is that all errors occuring afterwards in code in that module are reported as being from file  in the stacktrace. </p>
  
  <p>Is there anything I can do to correct this and supply a name I want? What would the best approach be?</p>