pep8 fixes in animation.py

mostly white space

one `has_key` -> `in`