Fixed sample.py.