code: def recv_msg(self):
          '''message receive routine'''
          if self._index >= self._count:
              return None
          m = self._msgs[self._index]
          self._index += 1
          self.percent = (100.0 * self._index) / self._count
          self.messages[m.get_type()] = m
          return f recv_msg(self):
          '''message receive routine'''
          if self._index >= self._count:
              return None
          m = self._msgs[self._index]
          self._index += 1
          self.percent = (100.0 * self._index) / self._count
          self.messages[m.get_type()] = m
          return m
docs: message receive routine