could you please add a 1-2 line comment describing that such approach (remove first, check later) is to avoid any possible race condition with a more mind-friendly 'if os.path.exists: remove'?