fixed pyflakes stuff