https://github.com/untitaker/python-atomicwrites/ https://pypi.org/project/atomicwrites/
