No need to close files after 'with open[...]'

I am reading through the code, and am correcting some minor issues as I see them.  Please consider applying the patch.

Thanks for this awesome machine learning project!