Make the python stats script more robust