class HelloWorld(object):
    _reg_progid_ = 'Python.TestServer'
_reg_clsid_ = '{7CC9F362-486D-11D1-BB48-0000E838A65F}'
_reg_desc_ = 'Python Test COM Server'
_public_methods_ = ['Hello']

def Hello(self):
    return 'Hello!'

def RegisterClass(cls):
    pass
Portable Python com server using pywin32