Minor improvements to pyflakes validation