def take_out_npools_from_cmdline(cmdline):
    """
    Wipe out any indication about npools from the cmdline settings
    :param cmdline: list of strings with the cmdline options (as specified in
        pw input settings)
    :return : the new cmdline with the options about npools
    """
    return  [e for i,e in enumerate(cmdline) 
             if (e not in ('-npools','-npool','-nk') 
                 and cmdline[i-1] not in ('-npools','-npool','-nk'))]