human
Solve the following python programming problem given the following code:
def InitModule(module_name) : 
    def get_cmd_name(cls) : 
        name = cls.__name__ 
        name = re.sub ('(?!^)([A-Z]+)', '_\\1', name).lower () 
        return name [0 : (len (name) - 8)] 
module = sys.modules [module_name] 
    for name in dir (module) : 
        if name.startswith ('Sbp') : 
            cls = getattr (module, name) 
            try : 
                if (not issubclass (cls, SbpTextCommand)) : 
                    continue 
except : 
                continue 
name = get_cmd_name (module_name) 
            cls.jove_cmd_name = name 
            if cls.is_kill_cmd : 
                kill_cmds.add (name) 
if cls.is_ensure_visible_cmd : 
                ensure_visible_cmds.add (name) 

    
    

    Fix the buggy line: name = get_cmd_name (module_name)
assistant
#Here is Python code to fix the buggy line: name = get_cmd_name (module_name)
.

name = get_cmd_name (cls)