Add support for Python 3

The tests now pass against Python 3.3 and Django 1.5/1.6.