結果 : check if element is dictionary python