HomeSoftware Heritage

Refactor non-cli code out of cli.py in swh-scanner