Why `dict(endpoints=endpoints)` instead of `{'endpoints': endpoints}`?