fixed bugs in stats.py
Merge branch 'master' of https://github.com/logicmd/DDQoE