Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
This question is likely not answerable as written, since we don't have access to your system. In addition the code as presented shows nothing of the structure of your concurrent processes.
Please indent you code correctly. Also, if you show what the data you are trying to iterate on looks like, and what you are trying to extract would look like, you are more likely to get a good answer.