updating catuple.py