modify python scripts

Signed-off-by: Riccardo Iaconelli <riccardo@kde.org>
add references, calculate delta for statistics

Signed-off-by: Riccardo Iaconelli <riccardo@kde.org>