def doWork(session, res, RefHashList):
    for equipment in res['Response']['data']['items']:
        i = equipment['itemHash']
k = equipment['characterIndex']
if i in RefHashList and k != 0:
    pass
Python Многопоточность цикла for с ограниченными потоками