Updated example.py

Updated for py3k