Python implementation of a CSV parser, to prune columns