Modified Risk.py