Adapt tests and demo to Django 1.6 and Python 3