title: Extract docstring from a python function
body: <p>I want to extract a docstring from every function in a python module.
  Thought, help does the intended action, It would print out a lot of extra stuff which I do not need. I have tried .__ doc__ as well. However, Even that does print out a lot of stuff and also print \n and \t.</p>
  
  <p>eg.</p>
  
  <pre><code>def Foo():
  """
  This is
  a multiline
  comment
  """
      pass:
  </code></pre>
  
  <p>I want something which will give me only the comment as a single line or in the specified format as is.</p>
  
  <pre><code>&gt;&gt;&gt; print (some operation on foo)
  &gt;&gt;&gt; "This is a multiline comment"
  &gt;&gt;&gt;
  </code></pre>
  
  <p>How do I remove of all the extra stuff.</p>
  
  <p>Greater picture:
  I have a module with a search function to find all functions and I want to display their descriptions along with functions</p>
  
  <pre><code>&gt;&gt;&gt; find('*', maths) # suppose maths is a module
  &gt;&gt;&gt; shapes.square "This is square"
      shapes.cube   "This is cube"
  </code></pre>
  
  <p>P.S I already have the find function I just need the string to append in the print statement.</p>
  
  <p>Thnaks</p>