How can I integrate Python 3 and Amibroker with "CreateObject"?

I have read this website

and I can integrate python and amibroker successfully in python2 .

However I want integrate Python 3.6 and amibroker .
And have downloaded "pywin32-220.win-amd64-py3.6.exe" from this website website

But it is error
擷取

This is my python script

import pythoncom
from win32com.server.exception import COMException
import win32com.server.util
import win32com.client.dynamic
import win32api, win32con
import win32gui
import random


class PythonUtilities(object):
    _public_methods_ = ['IIR2']
    _reg_clsid_ = "{25F32489-9E84-4D9F-8AEB-44DC9B528405}"
    _reg_desc_ = "Utilities for Extending Amibroker AFL"
    _reg_progid_ = "PyAFL"
    _readonly_attrs_ = ['revision']

    def IIR2(self, Test):
        win32api.MessageBox(0, str(Test), 'title')
        return 1


if __name__ == '__main__':
    print("Registering COM Server ")
    import win32com.server.register
    win32com.server.register.UseCommandLine(PythonUtilities)

This is my AFL script

//Create Python Com Object//
MyObj=CreateObject("PyAFL"); 


//TestStrategy//
bandMALen = Optimize("bandMALen", 125, 10, 125, 5);//24
bandWidth = Optimize("bandWidth", 2, 0.75, 2, 0.25);//6
midBand = 0;
upBand = 0; 
dnBand = 0;
upBand = BBandTop(close, bandMALen, bandWidth);
dnBand = BBandBot(close, bandMALen, -bandWidth);
midBand = MA(close, bandMALen);
Buy = Cross(Close, upBand);
Sell = Cross(dnBand, close);

//JustForTest
para = MyObj.IIR2("Test");
para=Nz(para);
    

Is anyone know how to do that? tks

(My os is Win10 64bit and contain python 3.6 64bit )

Do you get error message when you use “Check Syntax” in the AFL Editor? If so, what exact message is?

Note that you should NOT display ANY GUI (messageboxes) from AFL via OLE because AFL uses WORKER threads, not GUI threads.

You can only talk to GUI in AFL-complliant way using native functions like Param*, Gui*, PopupWindow. These functions are threading-aware and know how to talk between worker thread and GUI.