Pep8ify examples

This PR converts the animation, api and axes_grid examples.

(Retry of #3182/#3183)

I addressed @ianthomas23' comments from #3183
Note that this does not conform to pep8 (http://legacy.python.org/dev/peps/pep-0008/#block-comments) but this is not a problem since we ignore E265.