Python scripts for data analysis