def is_elf(filename):
    """
    check if the file is a linux ELF file
    """
    with open(filename, "rb") as f:
        # i've honestly never seen an ELF file that didn't start with this
        if f.read(4) == b"\x7fELF":
            return True
    return False