'Instanciate a new module.
There can be many instance of the same type.
\'mod_conf\' is module configuration object
for this new module instance.'

def __init__(self, mod_conf):

    self.myconf = mod_conf
    self.name = mod_conf.get_name()
    self.modules = getattr(mod_conf, 'modules', [])
    self.props = mod_conf.properties.copy()
    self.interrupted = False
    self.properties = self.props
    self.is_external = self.props.get('external', False)
    self.phases = self.props.get('phases', [])
    self.phases.append(None)
    self.to_q = None
    self.from_q = None
    self.process = None
    self.illegal_char = compile('[^\\w-]')
    self.init_try = 0
    self.loaded_into = 'unknown'
