def binaryFilesEqual(fn1, fn2):
    """True if two files are bytewise identical."""
    with open(fn1, "rb") as f1, open(fn2, "rb") as f2:
        for byte1, byte2 in zip(f1, f2):
            if byte1 != byte2:
                return False
    return True