[examples] final pep8 fixes

I would prefer to use the reshape method

``x = arange(100.0).reshape((10, 10))``