fix django 1.7 and python 3.3