'SecurityOptions.allowModules(module, module, ...): allow modules by
name. This will also allow the \'module\' type.'

def allowModules(self, *modules):

    for module in modules:
        if (type(module) == types.ModuleType):
            module = module.__name__
        if (not isinstance(module, bytes)):
            module = module.encode('utf-8')
        self.allowedModules[module] = 1
