Python Range Stack Overflow Apicectomy