old_contents: import tweepy, time, random
  
  def main():
      quit = False
  
      while not quit:
          CONSUMER_KEY = 'your_consumer_key'
          CONSUMER_SECRET = 'your_consumer_secret'
          ACCESS_KEY = 'your_access_key'
          ACCESS_SECRET = 'your_access_secret'
  
          auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
          auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
          api = tweepy.API(auth)
  
          minion_tweets = api.search(q="minions")
  
          minion_answers = [
              'STOP TALKING ABOUT MINIONS',
              'NO MORE MINIONS PLEASE',
              'OMFG STOP TALKING ABOUT MINIONS',
              'LIKE LITERALLY WHY DO YOU HAVE TO TWEET ABOUT MINIONS??? THERE\'S NO POINT',
              'Can you please stop talking about minions? Thanks.',
              'UGGGH!! STOP. TALKING. ABOUT. MINIONS.',
              'HOW HARD IS IT? STOP TALKING ABOUT MINIONS!!',
              'Hey, it\'d be nice if you could stop talking about minions bc they are the WORST'
          ]
  
          for minion_tweet in minion_tweets:
              sn = minion_tweet.user.screen_name
              minion_answer = "@%s %s" % (sn, random.choice(minion_answers))
              api.update_status(status=minion_answer, in_reply_to_status_id=minion_tweet.id)
          
          time.sleep(900)
  
  if __name__ == '__main__':
      main()
new_contents: import tweepy, time, random
  
  def main():
      while True:
          CONSUMER_KEY = 'your_consumer_key'
          CONSUMER_SECRET = 'your_consumer_secret'
          ACCESS_KEY = 'your_access_key'
          ACCESS_SECRET = 'your_access_secret'
  
          auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
          auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
          api = tweepy.API(auth)
  
          minion_tweets = api.search(q="minions")
  
          minion_answers = [
              'STOP TALKING ABOUT MINIONS',
              'NO MORE MINIONS PLEASE',
              'OMFG STOP TALKING ABOUT MINIONS',
              'LIKE LITERALLY WHY DO YOU HAVE TO TWEET ABOUT MINIONS??? THERE\'S NO POINT',
              'Can you please stop talking about minions? Thanks.',
              'UGGGH!! STOP. TALKING. ABOUT. MINIONS.',
              'HOW HARD IS IT? STOP TALKING ABOUT MINIONS!!',
              'Hey, it\'d be nice if you could stop talking about minions bc they are the WORST'
          ]
  
          for minion_tweet in minion_tweets:
              sn = minion_tweet.user.screen_name
              minion_answer = "@%s %s" % (sn, random.choice(minion_answers))
              api.update_status(status=minion_answer, in_reply_to_status_id=minion_tweet.id)
          
          time.sleep(900)
  
  if __name__ == '__main__':
      main()
subject: Make with statement easier