tweeked animation.py