[examples] final pep8 fixes

Perhaps. I like assigning to the shape attribute because then I am not messing around with views or copies. And I even get an exception if it can not be cleanly reshaped that way. This is entirely personal preference and I can go either way.