If you work with strings in your Python scripts and you're writing obscure logic to process them, then you need to look into ...
Command-line program to generate, update or transform docstrings in python source code. The app will parse the requested source files for docstrings as well as function signatures and class bodies.