Add function signature to docstrings in python.