fixed ex41.py