結果 : nonetype object is not iterable python sql