If you want to look something up in a dictionary, you should use that as key, instead of a number like 202 or 101. If you know sword is always going to be 202, you could ask
if 202 in DataImport.inven_data:
print(DataImport.inven_data[202]) #replace this by your actual code
That will print [Sword, 1]
If you really need to have the key 202, but need to look if some of the values is Sword, it dependes what is sword... if you have on the sword script something like class_name Sword
maybe you could do a for loop like this:
for item in DataImport.inven_data:
if DataImport.inven_data[item][0] == "Sword":
print(dict[item]) #replace this by your actual code
break
That would also only print [Sword, 1]
Is something like that what you are looking for?