Updated Python scripts