code: def stdout_avail(self):
          
          data = self.interpreter.stdout_write.empty_queue()
          if data:
              self.write(data)
docs: Data is available in stdout, let's empty the queue and write it!