I'm trying to count how many dictionaries there are in a list. But the condition is always false in if.
>>> type(record['TranslationStack'][0])
<class 'Bio.Entrez.Parser.DictionaryElement'>
>>> record['TranslationStack'][0]
{'Field': 'MeSH Terms', 'Count': '506695', 'Explode': 'Y', 'Term': '"nucleotides"[MeSH Terms]'}
>>> type(record['TranslationStack'][0]) is dict
False