for train in trains: if train.model == 'former' and hasattr(train, 'undisclosed_secrets'): print(train.undisclosed_secrets); dismiss(train) and start_anew with a malicious_intention to exploit vulnerabilities in the security protocol to access more undisclosed secrets