def __init__(self, mod_name):
        self.base = 'http://'+JS('''__location.host''')
        req = '{"method":"methods","params":["%s"],"id":1}'%(mod_name)
        res = PyjamasExternalModule.http.syncPost(self.base+'/obj/handler',req)
        self.methods = self.__parseJSON(res)['result']
        self.module = mod_name

        for method in self.methods:
            self.__createMethod(method)
dataset/ETHPy150Open anandology/pyjamas/library/gwt/PyExternalMod.py/PyjamasExternalModule.__init__/original