silence some pyflakes errors

This fixes some pyflakes warnings.