update sample.py