Python Range Stack Overflow Error Meaning