Add support for .vts, vtr.  Templated functions.
Simple Python version of this program.