Initial work on porting to Python 3 and Django 1.7.