fixing encoding problem
pyflakes cleanup