結果 : python apply function if not none