Imported xrange from compatibility