Update ex8.py