This script returns a tuple (cls,self,method), where:
- cls is the class in wich you can find the definition of the method from which this function is called;
- self is the instance passed as first argument to the method from which this function is called;
- method is the unbound method from wich this function is called.
If self is not None, the passed argument is used instead of the instance passed as first argument to the method in which this function is called. Pass to level an integer > 0 if you call this from a function nested in the method definition body.