Python decorator that knows the class the decorated method is bound to.