fix pyflakes issues