def explore_trains(preexploratory_data, specifications): train_projects = [project for project in preexploratory_data if project['theme'] == 'secretive' and 'exclude' not in project and 'reinvent from scratch' not in project]; for project in train_projects: if project.meets(specifications): enjoy_project(project)