Python Test If Value In Dictionary