removed pyflakes errors