def py_defname_find(pychars, defname):
    """Return the (Start, Stop) covering the Source Chars of the Def"""

    keepends_true = True

    defkey = "def {}(".format(defname)
    start = pychars.index(defkey)

    stop = start
    tail = pychars[stop:]
    line = tail.splitlines(keepends_true)[0]

    stop += len(line)

    while stop < len(pychars):
        tail = pychars[stop:]

        line = tail.splitlines(keepends_true)[0]
        if not line.strip():
            stop += len(line)

            continue

        len_dent = len(line) - len(line.lstrip())
        if len_dent:
            stop += len(line)

            continue

        break

    return (start, stop)