#!/usr/bin/env python3 import os from struct import unpack import sys def extract_emi(data): idx = data.find(b"\x4D\x4D\x4D\x01\x38\x00\x00\x00") siglen = 0 if idx != -1: data = data[idx:] mlen = unpack("