Linux Bash Get Substring Python Function Docstring