normal way of using variables throughout python
<p>What is the standard way of declaring configuration variables for your program at the top of a python script? These are used throughout the program in multiple classes and functions. Is the best way:</p>

<ol>
<li><p>To create a mixed dictionary with the configuration options, and pass these to any classes that need them. Downside: this requires passing extra attributes. For example:</p>

<pre><code>config = {'parseTags': {'title','font','p'},    
    'name': 'steve',                
    'logFrequencies': 10,               
    'print_rate': False  
    }
</code></pre>

<p>&nbsp;</p>

<pre><code>newCustomObject = CustomClass(config)
customfunction(config)
print 'hi',config['name']
</code></pre></li>
<li><p>Create global variables at the beginning of the file and call those throughout the program. Downside: ruins the encapsulation of the classes.</p></li>
<li><p>Something else.</p></li>
</ol>

<p>What is the most pythonic way of doing this?</p>
