refactored find_subclasses() in recursive_import