Chapter 21 (4th ed.): findclass.py does not work after fix

After fixing findclass.py by casting the return types in the Objective-C code to the proper types, it still does not list the classes but causes the error:

error: Error [IRForTarget]: Couldn't resolve the class for an Objective-C static method call

Can you anyone explain where this comes from and how to fix it?