fixed small pyflakes issues