made it compatible with new version of python-wepay