Python Test If Key Is In A Dictionary