syntax checking: pyflakes: report syntax errors, rather than logging as a warning

(integrated from master branch change 349ee42 by Todd Whiteman <toddw@activestate.com>)