Fix errors in test on Django 1.7
Fix runtest for Django < 1.7 and drop support for py26