title: How to iterate over class methods
body: <p>If I import a module and I want to iterate over the static methods therein, is there a way to do that?</p>
  
  <p>In the module:</p>
  
  <pre><code>class duck():
      @staticmethod
      def duck_quack():            
          return 'Quacks like a duck'
      @staticmethod
      def person_walk():            
          return 'Walks like a person'
  </code></pre>
  
  <p>In the controller:</p>
  
  <pre><code>from applications.... import duck
  
  m = duck()
  
  def result_m():
      for stuff in dir(m):
          if 'person' in stuff:
              result = stuff
          elif 'duck' in stuff:
              result = stuff
  </code></pre>
  
  <p>Instead, I keep getting a <code>None</code> response. Is there a better way than using this?</p>