[examples/api] autopep8 + use np.radians/np.degree where appropriate