Fixed example to be more modern

Small change to make example.py at least *slightly* correct.