Update animCurve_lib.py

copied from dd