Update q8.py