imports can't be safely automatically stripped in Python (or even 100% safely re-ordered) since they could have side effects.
We run a linter that confirms with the user before stripping them, which works out well in practice.
We run a linter that confirms with the user before stripping them, which works out well in practice.