Looking for suggestions on the best route to take when trying to do a comparison in python. Basically my function is going to from the word level, bit level, instance level and then to the mask level and will do a comparison and if it doesnt find a matter it will need to append the new info at the end.