Update client.py

fix for stale='ok' not working due to the json.dumps on strings.