changing xrange to range, solving some encoding issues