Intializing classes in module for namespace
<p>There is a module <code>car.py</code>.</p>

<p>There are engine and tires, and I want them (theirs methods and properties) to be accessible as </p>

<pre><code>car.engine.data
# and
car.tires.data
</code></pre>

<p>So file <code>parts.py</code> looks like  </p>

<pre><code>class engineClass(object):
    def __init__(self):
        self.data = 'foo data 1'

class tiresClass(object):
    def __init__(self):
        self.data = 'foo data 2'

engine = engineClass()
tires = tiresClass()
</code></pre>

<p>And now after <code>import car</code> I can access them as I want - <code>car.engine.data</code> </p>

<p>Is it a right thing to do for this task?</p>
