Rewors runtests.py

Make runtests.py compatible with Django 1.6 and 1.7