@@ -0,0 +1,1438 @@
+#!/usr/bin/env python%0A# ----------------------------------------------------------------------%0A# Numenta Platform for Intelligent Computing (NuPIC)%0A# Copyright (C) 2015, Numenta, Inc.  Unless you have an agreement%0A# with Numenta, Inc., for a separate license for this software code, the%0A# following terms and conditions apply:%0A#%0A# This program is free software: you can redistribute it and/or modify%0A# it under the terms of the GNU General Public License version 3 as%0A# published by the Free Software Foundation.%0A#%0A# This program is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.%0A# See the GNU General Public License for more details.%0A#%0A# You should have received a copy of the GNU General Public License%0A# along with this program.  If not, see http://www.gnu.org/licenses.%0A#%0A# http://numenta.org/licenses/%0A# ----------------------------------------------------------------------%0Aimport csv%0Aimport sys%0A%0A%0A%0Adef run(filename):%0A  with open(filename, 'rU') as infile:%0A    reader = csv.reader(infile)%0A    outfilename = %22trivial_%22 + filename%0A%0A    with open(outfilename, 'wb') as outfile:%0A      writer = csv.writer(outfile)%0A%0A      writer.writerow(reader.next())%0A%0A      for row in reader:%0A        writer.writerow(%5Brow%5B0%5D, row%5B1%5D, row%5B1%5D%5D)%0A%0A      print %22Wrote to:%22, outfilename%0A%0A%0A%0Aif __name__ == %22__main__%22:%0A  run(sys.argv%5B1%5D)%0A

Add utility