Non obstructive python hooks for class methods.