title: Using python decorator functions from a different module
body: <p>I want to use a function from another module as a decorator, but I need it to manipulate the current module's global namespace.</p>
  
  <p>For example, I want to be able to go from this:</p>
  
  <pre><code>class SomeClass:
      pass
  
  root = SomeClass
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>from othermodule import decorator
  
  @decorator
  class Someclass:
      pass
  </code></pre>
  
  <p>Any ideas?</p>