Fix pyflakes logs.