Python scripts for Risk