<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _got_cons_input(self, handle):
 """Callback for handle events detected by ipmi session """

        self._addpendingdata(handle.read())
        if not self.awaitingack:
            self._sendpendingoutput()