def prepare(self): self.appid = options.wx_appid self.appsecret = options.wx_appsecret self.token = options.wx_token self.wechat = WxBasic(appid=self.appid, appsecret=self.appsecret, token=self.token)