Update pydemo.py

Add pydemo class