examples: update for Python 3