pure-python implementation of MemoryModule technique to load dll and unmanaged exe entirely from memory