def remove_from_running_pool():
    ' Remove modules from running pool if they are not in modules list from argument '
    copy_of_modules = []
    for module in modules.run_ptr:
        if (module['name'].lower() in arg_modules):
            copy_of_modules.append(module)
    modules.run_ptr = copy_of_modules
Remove modules from running pool if they are not in modules list from argument
def remove_from_running_pool():
    '  '
    copy_of_modules = []
    for module in modules.run_ptr:
        if (module['name'].lower() in arg_modules):
            copy_of_modules.append(module)
    modules.run_ptr = copy_of_modules