Create pi_demo.py