結果 : check if file exists before opening python