pep8 fixes in animation.py