Fix temp file handling on Windows
Fix temp file handling on Windows

On windows, you can not read file, which has been opened for writing by NamedTemporaryFile. This patch closes the file after it has been filled and deletes it once it is no longer needed.

* I am no python expert, so the error handling may be better.
* I have no Linux and/or OS X Sublime installation handy, so it has not been tested there. To my best knowledge it should work.
ketan/BeautifyLatex