adding ex31.py