<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def stdout_avail(self):

 """Data is available in stdout, let's empty the queue and write it!"""

        data = self.interpreter.stdout_write.empty_queue()
        if data:
            self.write(data)