結果 : check if file is open python