Changing xpath -> key_name and removing .keys() from three dictionary search statements.