Updated for Python 3.4 and Django 1.7 with PEP8