title: add method to loaded class/module in python
body: <p>if I have something like</p>
  
  <pre><code>import mynewclass
  </code></pre>
  
  <p>Can I add some method to mynewclass? Something like the following in concept:</p>
  
  <pre><code>def newmethod(self,x):
      return x + self.y
  
  mynewclass.newmethod = newmethod
  </code></pre>
  
  <p>(I am using CPython 2.6)</p>