I think `stepsizes // 2` would work to ensure truncating division in both Python 2 and 3, and is a fair bit faster.