Fix pyflakes logs.
Merge pull request #1376 from benallard/patch-1

Fix pyflakes logs.