fixed Import errors on django 1.6