Porting to Django 1.7 conventions and Python 3.4.