Fixed Python 3 error in example.