Updated animation.py.