Python scripts for data manipulation