replace [i for i in xrange(...)] with range(...)