title: Wrapping a method from outside the class in Python
body: <p>Let say I have some imported class named <em>TheClass</em> and a method <em>sth(arg)</em>. </p>
  
  <p>What I have:</p>
  
  <pre><code>var = TheClass()
  var.sth('blah')
  </code></pre>
  
  <p>What I want:</p>
  
  <pre><code>var = TheClass()
  var.wrapped_sth()
  </code></pre>
  
  <p>where wrapped_sth is something like:</p>
  
  <pre><code>def wrapped_sth():
      sth('blah')
  </code></pre>
  
  <p>I already know that it should be done with a decorator, however all the examples I already found were cases where you have access to <em>TheClass</em> implementation, which I don't have and I don't want to override.</p>
  
  <p>Hope the description is clear. Can you help me?</p>