Pep8ify examples

This PR converts the animation, api and axes_grid examples.

(Retry of #3182/#3183)

I addressed @ianthomas23' comments from #3183
The spaces were removed by me on purpose and not by the (auto)pep8 tool. I'll readd the spaces around the second asterisk in a coming PR