#294 correct usage of range and xrange ...