code: def expect(self, relist, timeout=None, cleanup=None):
          
          return self._waitfor(relist, timeout, True, cleanup=cleanup)
docs: Like waitfor(), but removes the matched data from the incoming
          buffer.