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
instance methods will have attributes .im_class .im_func .im_self
http://docs.python.org/library/inspect.html#types-and-members
You probably want to see if the function hasattr .im_class, and get the class info from there.