Python Test If Variable Is Dictionary Capitalized