Pep8ify examples

This PR converts the animation, api and axes_grid examples.

(Retry of #3182/#3183)