main
for j, cell in enumerate(row): for cell_tr, trs in ACKS_TRS.items(): if cell == cell_tr: row[j] = trs[i - 1]