title: Python AST processing
body: <p>I have a Python AST [as returned by ast.parse()].</p>
  
  <p>I know this is an AST of a class method.</p>
  
  <p>How do I find all calls to other methods of the same class?</p>
  
  <p>Basically, I want to collect something like:</p>
  
  <pre><code>['foo', 'bar']
  </code></pre>
  
  <p>for a code snippet like:</p>
  
  <pre><code>def baz(self): # this is a class method
      '''baz docstring'''
      self.foo() + self.bar()
  </code></pre>
  
  <p>I need a function that will accept an AST and will return the list of other methods [method names as strings] of the class that are being invoked inside a method of the same class.</p>