Convert to PEP 3110 style exception catching

Moves minimum Python version to 2.6, makes code compatible to Python 3.

Dropping older Django versions may be in order?