remove django 1.4 from travis config
use range instead of xrange