python 3 compatibility
Django 1.7 compatibility