title: Python class decorator that overrides internal method
body: <p>I'm trying to write a decorator that can be used to override a method during inheritance, but externally.
  Something like:</p>
  <pre><code>class A:
     def some_method(self):
         print('does stuff')
  
  def override(method):
      # override decorator
      ....
  
  def some_method_override():
      print('does other stuff')
  
  @override(method, some_method_override)
  class B:
      #overridden
  
  a = A()
  b = B()
  a.some_method() # prints 'does stuff'
  b.some_method() # prints 'does other stuff'
  </code></pre>
  <p>If anyone could share some ideas on this, that would be great!</p>