結果 : how to test for none in python