Adding atomicity.py which hopefully will at atomic write to ND