Fixes a Python 3 compatibility and excludes Python 3 + Django 1.4