Ensure file handle is closed by using with statement
Merge pull request #8 from svisser/patch-1

Ensure file handle is closed by using with statement