update kds.py urlencode