Update tic_lib.py