Use context to open and close files
Add comment regarding platform-independent handling of newlines
Merge branch 'master' of https://github.com/bmaupin/misc-python