made more changes for demo02.py code, which was in final.pl