結果 : check if item is a dictionary python