Add ex7.py and associated files