[examples] final pep8 fixes

This is pep8 compliant (see the ``ham[lower + offset : upper + offset]`` example in the pep8 doc). However, this 'fix' leads to a different pep8 error. Therefore, I've reverted it.