Fix script scripts/stats.py

Signed-off-by: Jerome Flesch <jflesch@gmail.com>