Submitting correct version

@JamieMihoko I think you will automatically get our inline comments by email, but I'm not positive since I did the pull request, so I'll do at-mentions to be sure...

Anyway: for this line, you can use the "with open" construct that you used when writing out the file. I think if you don't use the "with", you are technically supposed to close the file connection explicitly.