Several modules in a package importing one common module
<p>I am writing a python package. I am using the concept of plugins - where each plugin is a specialization of a Worker class. Each plugin is written as a module (script?) and spawned in a separate process.</p>

<p>Because of the base commonality between the plugins (e.g. all extend a base class 'Worker'), The plugin module generally looks like this:</p>

<pre><code>import commonfuncs

def do_work(data):
    # do customised work for the plugin
    print 'child1 does work with %s' % data
</code></pre>

<p>In C/C++, we have include guards, which prevent a header from being included more than once.</p>

<p>Do I need something like that in Python, and if yes, how may I make sure that commonfuncs is not 'included' more than once?</p>
