Python Module identifies as dict
<p>Lets say I have a lot of key-pair data. I would like to have this data in a package so that it can be imported. Is there a way to make modules work like dicts, for performance and extendibility reasons?</p>

<p>Example: </p>

<pre><code>common/pairs/
 ├── BUILDINGS.py
 └── __init__.py

import BUILDINGS

BUILDINGS["foo"] == "bar"
</code></pre>

<p>Note: The desired result can be archived by putting declaring <code>BUILDINGS</code> in <code>__init__.py</code> but they will all be compiled every time, its not drag and undroppable, and it seems ugly.</p>

<p>Is there a way to achieve this well? Is there a way to achieve it at all? </p>
