Format docstrings in utils/shell.py