Update basicdemo.py