Comply with PEP 3310 "Catching Exceptions in Python 3000"

Generated with `2to3 -f except`.

Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
Use set literals to better comply with Python 3

Generated with `2to3 -f set_literal`.

Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
Fix whitespace in comma separated items

Generated with `2to3 -f ws_comma`.

Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
Merge pull request #33 from cvubrugier/2to3

2to3: preparatory work for python 3