Update example.py

that `self` can probably be avoided