title: Ignore imported functions in a python module when using getmembers(module, isfunction)
body: <p>Is there a way to ignore imported functions in a python module?</p>
  
  <p>When using the following module module.py:</p>
  
  <pre><code>from inspect import getmembers, isfunction
  import foo
  
  def boo():
     foo()
  
  def moo():
     pass
  
  
  funcs = [mem[0] for mem in getmembers(module, isfunction)]
  </code></pre>
  
  <p>funcs equals : <code>['boo','moo', 'foo']</code> (including imported function 'foo')</p>
  
  <p>I want funcs to include <code>['boo', 'moo']</code> only.</p>