Make use of context managers to safely close files
Merge pull request #26 from msoucy/ref/python/context-managers

Make use of context managers to safely close files