code cleanup with pyflakes