Update example.py

Cleaned up example.py