pydoc.splitdoc()

pydoc.splitdoc(doc)[source]

Split a doc string into a synopsis line (if any) and the rest.