Flake8 on morphology changes

Plus fix a few typos and make the test runnable as a standalone script.

Re: https://github.com/python-pillow/Pillow/pull/712