Rename next to __next__ in ApiResourceList class