merg iter_spider_classes and iter_command_classes