def make_unique_title(title, title_dict):
    """Appends number to title for duplicates"""
    num = 1
    base_title = title
    while title_dict.get(title):
        num += 1
        title = f"{base_title} ({num})"
    return title