update catuple.py