結果 : check if list is nested python