Write to cache now handled by atexit, fixed style, add util.py
Merge pull request #4 from ramatevish/add_atexit

Write to cache now handled by atexit, fixed style, add util.py