import struct, sys f = open(r'C:/git/bt411/content/BTL4OPT.EXE', 'rb').read() pe = struct.unpack_from('