Fix trivial warnings (unused variables) in Statistics unit test.
Fix more warnings from the buildbot in deb3 Python modular.
Merge pull request #2573 from iglesias/fix_warnings

Fix trivial warnings (unused variables) in Statistics unit test.