Pep8ify examples

This PR converts the animation, api and axes_grid examples.

(Retry of #3182/#3183)

I addressed @ianthomas23' comments from #3183
This is supposed to be a commented out piece of code, so it probably shouldn't have a space here. This is an odd one because we need to show people how one *would* save an animation, without actually doing it.