Small updates to tl_calc.py