結果 : check if object is list or dict python