Submitting correct version

@JamieMihoko this works just fine, though note that there is a "writerows" method that allows you to simplify this a bit.

Nice job overall!