Pep8ify examples

This PR converts the animation, api and axes_grid examples.

(Retry of #3182/#3183)

I addressed @ianthomas23' comments from #3183
This seems to be a bug in autopep8. The pep8 tool still detects the ``E265 block comment should start with '# `` error on this line.