Make Compatible with Python 3.4 and Django 1.7

Attempted to maintain backwards compatibility but didn't test with old versions to confirm.