Convert to PEP 3110 style exception catching

Moves minimum Python version to 2.6
Merge pull request #22 from stefanw/python-3

Convert to PEP 3110 style exception catching