Overwrite Python library dependencies
<p>I've a module that imports some libraries which I want to overwrite. Example:</p>

<p><em>module.py</em></p>

<pre><code>import md5

def test():
    print(md5.new("LOL").hexdigest())
</code></pre>

<p><em>newfile.py</em></p>

<pre><code>class fake:
    def __init__(self, text):
        self.text = text
    def hexdigest(self):
        return self.text
import sys
module = sys.argv[1] # It contains "module.py"
# I need some magic code to use my class and not the new libraries!
__import__(module)
</code></pre>

<p><strong>Edit 1</strong></p>

<p>I want to <em>avoid</em>/*skip* the import, not to execute it and then do a substitution.</p>

<p><strong>Edit 2</strong></p>

<p>Code fixed (this is just an example).</p>
