[fix bug 990527] Fix wrong message when a user invalidates a report.

* Minor PEP8 fixes.