Sure, that module could be used, but the problem does not require any parsing of the CSV lines (except identifying the type of line with the two or three first characters), it actually does not even need to know that the lines are CSV.
Using a CSV module for that seems IMHO to be overkill.