added sys.memory.open, sys.memory.stream