run autopep8 in examples/api
use np.radians/np.degrees in examples/api where appropriate
Merge pull request #3181 from thisch/pep8examplesapi

examples/api PEP8 refresh.