tiny fixed coding style: ``from os import path`` => ``import os, os.path``
atomic write to file