I have three collection.deques and what I need to do is to iterate over each of them and perform the same action:
for obj in deque1: some_action(obj)
Use itertools.chain(deque1, deque2, deque3)
itertools.chain(deque1, deque2, deque3)