Fix an error with printing trace from `do_`.
Remove a debug line.
Add JSON encoding so that errors are strings.
Add python version tests to CI for debugging.