This could be done more cleanly & efficiently with numpy operations:

``` python
n_estimators = (ensemble.n_estimators // n_jobs) * np.ones(n_jobs)
n_estimators[:ensemble.n_estimators % n_jobs] += 1
starts = np.cumsum(n_estimators)
return n_jobs, list(n_estimators), [0] + list(starts)
```