Update examples to work with Python 3