fix django 1.7, break python 3