Python Test If Key Is In A Dict