Replace `atomicwrites `__ dependency on windows with `os.replace`.