Fixed issue with calling xrange from xrange_six