title: Modify namespace of importing script in Python
body: <p>I'd like a function in my module to be able to access and change the local namespace of the script that's importing it. This would enable functions like this:</p>
  
  <pre><code>&gt;&gt;&gt; import foo
  &gt;&gt;&gt; foo.set_a_to_three()
  &gt;&gt;&gt; a
  3
  &gt;&gt;&gt;
  </code></pre>
  
  <p>Is this possible in Python?</p>