Loops through values as intended

Used to loop through keys and insert into dictionary to obtain values
(which in turn used to obtain .name of value)