'Function called to grab stats.
Infinite loop, should be stopped by calling the stop() method'

def run(self):

    for i in self._stats_stream:
        self._stats = i
        time.sleep(0.1)
        if self.stopped():
            break
