human
Solve the following python programming problem given the following code:
def remove_head_directories(path, heads = 1) : 
    def explode_path(path) : 
        (head, tail) = os.path.split (path) 
        return ((explode_path (head) + [tail]) if (head and (head != path)) else [(head or tail)]) 
exploded_path = explode_path (explode_path) 
    if (len (exploded_path) < (heads + 1)) : 
        return '' 
else : 
        return os.path.join (* exploded_path [heads :]) 

    
    

    Fix the buggy line: exploded_path = explode_path (explode_path)
assistant
#Here is Python code to fix the buggy line: exploded_path = explode_path (explode_path)
.

exploded_path = explode_path (path)