Atomic file writes library for Python, featuring race-free assertions, Windows support (although untested) and simple high level API. WWW: https://github.com/untitaker/python-atomicwrites