title: Python: Do something for any method of a class?
body: <p>Say I have a class with a bunch of methods:</p>
  
  <pre><code>class Human():
  
    def eat():
      print("eating")
  
    def sleep():
      print("sleeping")
  
    def throne():
      print("on the throne")
  </code></pre>
  
  <p>Then I run all the methods with</p>
  
  <pre><code>John=Human()
  John.eat()
  John.sleep()
  John.throne()
  </code></pre>
  
  <p>I want to run <code>print("I am")</code> for each method being called. So I should get something like</p>
  
  <pre><code>I am:
  eating
  I am:
  sleeping
  I am:
  on the throne
  </code></pre>
  
  <p>Is there a way to do this without having to reformat each method? </p>