how do i add code to an existing function, either before or after?
for example, i have a class:
class A(object): def test(self): print
Why not use inheritance?
class B(A): def test(self): super(B, self).test() print "and here"