Fixed some stylechecker errors caught by flake8