cli: speedup the `swh` cli command startup time
by moving import statements in functions. Also move the definition of StepOption in swh.graph.cli since it's purely a click dedicated class.
Related to swh-environment#2575 (closed).
Migrated from D3910 (view on Phabricator)