Adding atomicwrite in stdlib

Hmm…

BTW, why chdir chose contextlib instead of shutil?