from pathlib import Path


def get_readable_header(first_file, second_file):
    """Get the readable names from input files.

    We want our eventual final output to include headers so that people
    can easily see what versions we're diffing between. This grabs the
    files' relevant parts -- which here is /folder/{THIS PART}.extension
    for display purposes.

    Keyword arguments:
    first_file -- the file we're diffing from
    second_file -- the file we're diffing to
    """
    from_name = Path(first_file).stem
    to_name = Path(second_file).stem

    return {'old': from_name, 'new': to_name}