Updated snippets to use Python 3 syntax for except.

This change fixes the `try...` snippets to use the form of the `except` statement which is required by Python 3.  This syntax was [back-ported to Python 2.6 and later](http://www.python.org/dev/peps/pep-3110/#implementation).