Python Test If Key Is In Dictionary