Checking what arguments a function is expecting
<p>Say I have a simple function</p>

<pre><code>def fun(arg1, arg2):
  ...
</code></pre>

<p>how can I get a list <code>['arg1', 'arg2']</code> out of it?</p>

<p>I have a GUI that calls on some methods, and I want to see if I can dynamically generate the forms that allow the user to submit arguments to them. </p>
