cli: speedup the `swh` cli command startup time
by moving import statements in functions.
Related to swh-environment#2575 (closed).
Migrated from D3908 (view on Phabricator)
by moving import statements in functions.
Related to swh-environment#2575 (closed).
Migrated from D3908 (view on Phabricator)