исправить размер питона Deque
self.queue = collections.deque(maxlen=size)
QuietHumility
self.queue = collections.deque(maxlen=size)