title: How to find out what methods, properties, etc a python module possesses
body: <p>Lets say I import a module. In order for me to make the best use of it, I would like to know what properties, methods, etc. that I can use. Is there a way to find that out?</p>
  
  <p>As an example: <a href="https://stackoverflow.com/questions/3429250/determining-running-programs-in-python">Determining running programs in Python</a></p>
  
  <p>In this line:</p>
  
  <pre><code>os.system('WMIC /OUTPUT:C:\ProcessList.txt PROCESS get Caption,Commandline,Processid')
  </code></pre>
  
  <p>Let's say I wanted to also print out the memory consumed by the processes. How do I find out if that's possible? And what would be the correct 'label' for it? (just as the author uses 'Commandline', 'ProcessId')</p>
  
  <p>Similarly, in this: </p>
  
  <pre><code>import win32com.client
  def find_process(name):
      objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
      objSWbemServices = objWMIService.ConnectServer(".", "root\cimv2")
      colItems = objSWbemServices.ExecQuery(
           "Select * from Win32_Process where Caption = '{0}'".format(name))
      return len(colItems)
  
  print find_process("SciTE.exe")
  </code></pre>
  
  <p>How would I make the function also print out the memory consumed, the executable path, etc.?</p>