Django 1.7 and Python 3 support for tests
Use bytes if on Python3