Kind of a common issue for python CLI tools. If you use its module import system idiomatically it leads to a lot of unrelated code being executed and being loaded into memory, something lazy imports [1] aim to solve (at least partially).
[1] https://peps.python.org/pep-0810/#motivation