Use Python 3 syntax for Try… snippets

This is compatible with Python 2.6 and higher, more info:

http://www.python.org/dev/peps/pep-3110/#implementation