statistics: minor testing refactor
statistics: display it correctly when non-Python files are run and fail