Use with statement to close file handle
Merge pull request #1 from svisser/patch-1

Use with statement to close file handle