ticket: 4 pyflakes fixed