updated ex36.py and ex36_test2a.py