if "__call__" is contained in klass.__dict__ for any klass in __mro__ field of the obj class, return boolean True, otherwise return False.
return any ( "__call__" in klass . __dict__ for klass in type ( obj ) . __mro__ )