old_contents: #!/usr/bin/env python
  
  from redis import StrictRedis
  import config
  import bbs
  
  
  def main(r):
      pass
  
  
  if __name__ == '__main__':
      r = StrictRedis(host='localhost', port=6379, db=1)
      main(r)
  
new_contents: #!/usr/bin/env python
  
  from redis import StrictRedis
  import config
  import bbs
  
  
  def main(r):
      for board in config.BOARDS.keys():
          for thread_id in bbs.get_stale_threads(r, board):
              bbs.purge_thread(r, board, thread_id)
  
  
  if __name__ == '__main__':
      r = StrictRedis(host='localhost', port=6379, db=1)
      main(r)
  
subject: Add thread purge executable.