modified weixin/base.py