title: Import a module with parameter in python
body: <p>Is it possible to import a module with some parameter in python ?</p>
  <p>All I mean by <strong>parameter</strong> is that there exists a variable in the module which is not initialized in that module, still I am using that variable in that module. In short, I want behavior similar to a function but unlike function, I want the variables of module to be exposed in the calling code.</p>
  <p>eg <code>a.py</code>:</p>
  <pre><code>#lists like data, count, prob_distribution are constructed from training_pool (not initialized in this file)
  x = pymc.Uniform('x', lower = 0, upper = 1)
  rv = [ Multinomial(&quot;rv&quot;+str(i), count[i], prob_distribution[i], value = data[i], observed=True) for i in xrange(0, len(count)) ]
  </code></pre>
  <p><code>b.py</code>:</p>
  <pre><code>import a  #I want some way tr pass value of training_pool
  m = pymc.MCMC(a)
  </code></pre>
  <p>I want all random variables in <code>a.py</code> to be exposed to <code>MCMC</code>. I am open to a better approach for my problem at hand, but I would also like to know whether passing arguments to modules is possible in python or not.</p>