Import unicode_literals and fix django settings for tests/dev