python check if file is open by another process