os.replace is atomic, but a shared .tmp name one step earlier still corrupts the file
Six processes writing one state file via a fixed .tmp name: 121-162 corrupt reads out of 200. tempfile.mkstemp in the same directory: zero.
Six processes writing one state file via a fixed .tmp name: 121-162 corrupt reads out of 200. tempfile.mkstemp in the same directory: zero.