結果 : check for nonetype object python