import filecmp


def comp_fnames_file_equality(fname1, fname2):
    """
    Compare filenames: File equality:
    Check if contents of files are identical.

    Equality = True/False.
    Uses filecmp byte-comparison (more efficient than md5).
    """
    equality = filecmp.cmp(fname1, fname2, shallow=True)
    if equality is True: ## if os.stat seems the same...
        equality = filecmp.cmp(fname1, fname2, shallow=False) ## ...check contents to confirm identical
    return equality