This analyzes a python script and, for each defined function, reports the line number where the function began, where the signature ends, where the docstring ends, and where the function definition ends.
#!/usr/local/bin/python3
import ast
import sys
""" The data we collect. ...