for invention in pre_existing_inventions: try: if tune_out_existing_knowledge: reinvent_with_formulas(); except: recommence_from_scratch(); reveal_secrets_about_invention(invention, secret='unrevealed') if invention.secret == 'unrevealed' else print('no secrets to disclose.')