demo.py updated