Added example.py to illustrate basic usage.