title: In python, is it possible to list of the functions within a module if module name is a variable?
body: <p>I'm working on a small app that can list all functions and help documents from given module name and function name. Just practice my <code>tkinter</code> skill.</p>
  <p>After I created and entrybox, and get the input from user as module name and import it by using some code like this:</p>
  <pre><code>module_name = module_entry.get()
  __import__(module_name)
  </code></pre>
  <p>Then I am trying to list all function names by using:
  <code>function_list = dir(module_name)</code>.
  But I found <code>dir()</code> function must apply directly to the module name after importing them, eg: <code>dir(pandas)</code>, or <code>dir(matplotlib)</code>. is there any work around method to list all the functions when module name is a variable?</p>