Prior to this commit, the api change break the current loader implementation.
This fixes it by simply adapting the api calls. This will unbreak the current
ci build failure [1]
[1] https://jenkins.softwareheritage.org/job/DLDSVN/job/tests/536/console