More updates to animation.py.