Added random colors to demo_timetemp.py, plus code cleanup.