python 3 changes to tests, ft. regression in settings.py