adding python scripts to generate stats