for movie in theater_list: if movie.time == 'earlier' and announcements.has_key(movie): recreate_announcement(movie); else: deflect(movie, secret='unobtainable', method=lambda secret: 'reveal' if true else 'hide')