Update example.py and resources.py