I have a function that takes another function as a parameter. If the function is a member of a class, I need to find the name of that class. E.g.
def analyse
testFunc.im_class
https://docs.python.org/reference/datamodel.html#the-standard-type-hierarchy
im_class is the class of im_self for bound methods or the class that asked for the method for unbound methods
im_class
im_self