old_contents: import gevent
  import redis
  from ctfengine import config
  
  red = redis.StrictRedis()
  
  
  def event_stream():
      pubsub = red.pubsub()
      pubsub.subscribe(config.REDIS_CHANNEL)
      for msg in pubsub.listen():
          gevent.sleep(2)
          yield 'data: {0}\n\n'.format(msg['data'])
  
  
  def send(msg):
      red.publish(config.REDIS_CHANNEL, msg)
  
new_contents: import gevent
  import gevent.monkey
  import redis
  from ctfengine import config
  
  gevent.monkey.patch_all()
  red = redis.StrictRedis()
  
  
  def event_stream():
      pubsub = red.pubsub()
      pubsub.subscribe(config.REDIS_CHANNEL)
      for msg in pubsub.listen():
          gevent.sleep(0.1)
          yield 'data: {0}\n\n'.format(msg['data'])
  
  
  def send(msg):
      red.publish(config.REDIS_CHANNEL, msg)
  
subject: decrease sleep time, gevent monkey patch