made animate.py pep8 compatible