ppolicy: fix pyflakes warnings