cli: speedup the `swh` cli command startup time
move most import statements in functions.
Related to swh-environment#2575 (closed).
Migrated from D3916 (view on Phabricator)
Staging instance, all changes can be removed at any time
move most import statements in functions.
Related to swh-environment#2575 (closed).
Migrated from D3916 (view on Phabricator)