if len(arginfo.args) > 0 and arginfo.args[0] == 'self':
    func_name = '%s.%s'(arginfo.locals['self'].__class__.__name__, func_name)
How can I get the name of the class of a bound method from the interpreter stack?