Update curvetype.py