結果 : how to handle none type object in python