FINALLY---Fixed the memory error. It was a function of not working properly on win64 with the Netica.dll 64-bit and 64-bit python. Will have to deal with detail of such later. For now, works in 32-bit.