update example.py code in Example conforming to example.py
Merge pull request #7 from garyelephant/master

update example.py code in Example conforming to example.py