Small optimization to tiemstream.py.
Big Changes to makeproducts.