In Python 2.x (range 10) is mapped to xrange(10) in Python terms. However, xrange doesn't support slicing, which caused tests to fail. By forxing xrange into list, we have slicing available.