pyflakes code cleanup