statistical analysis using python