Few changes to support running on python3
Encode to utf-8 at the FileWriter level so that we catch all undecodable strings
Switch from functions to variables to encapsulate python2/3 differences
Uses TEMP from env as temp directory

On Windows, %TEMP% points to the temporary directory (usually
%HOMEPATH%\AppData\Local\Temp).
Merge pull request #14 from remram44/windows

Windows compatibility: uses TEMP from env
Merge pull request #9 from abadger/feature/python3

Few changes to support running on python3
Make README.md ReST-friendly

Currently info on PyPI looks bad because of non-ReST code blocks.
This changes fixes that.

See also https://gist.github.com/dupuy/1855764
Merge pull request #17 from YorikSar/readme

Make README.md ReST-friendly