def binary_arch(binary):
with open(binary, '<STR_LIT:rb>') as f:<EOL><INDENT>elffile = ELFFile(f)<EOL>if elffile['<STR_LIT>'] == '<STR_LIT>':<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>
helper method for determining binary architecture

:param binary: str for binary to introspect.
:rtype bool: True for x86_64, False otherwise