def add_header(title, spacer=1):
    """
    Adds Markdown header based on module_path (pathlib.Path object).
    Defines subheaders based on Path.parents
    
    Path("package/subpackage/module.py")
    
    ## module.py
    
    """
    
    return f"{spacer * '#'} {title}\n"