結果 : nonetype object is not subscriptable error in python