Updated examples for Python 3