If you use the new `str.format()` syntax, you don't have to repeat passing the same variables multiple times:
```python
sh("echo 'import {system}.envs.{env}' | python manage.py {system} shell --plain --settings={env} --pythonpath=.".format(
    system=system, env=env)
)
```