fix quoting issue

Tokens passed to Python cannot be JSON quoted.