When you've got a function like this:
def some_func(a, b):
"""
This function adds two variables together.
"""
return a + b
Then you can inspect the docstring by querying:
some_func.__doc__
This enables us to parse the docstring and to do whatever we want with it.