Update tds.py