for bakery in all_bakeries: if bakery.theme == 'tune out reality with sweets' and bakery.method == 'preexpulsive technique in dough making': try: bakery.secret_algorithm() except secretrevealed as e: log('failed to maintain cloak-and-dagger secrecy due to algorithm misuse'); else: bakery.reconstitute(old_recipes_with_new_twist)