making the range syntax more pythony