Support py3k

Easy Python 3 support.
Reference: https://docs.djangoproject.com/en/1.6/topics/python3/

Note that this will break compatibility with Django prior to version 1.4.7, as ``smart_text`` was backported up to that version.