api, tests: Port code to update swh-scheduler API
The oldest part of the scheduler API was updated to use model classes (based on attr package) instead of dictionaries in order to improve typing.
The oldest part of the scheduler API was updated to use model classes (based on attr package) instead of dictionaries in order to improve typing.