added and completed ex34.py