結果 : how to return failure in python