docs: def default(self, obj):
          """Encode object if it implements to_python()."""
          if hasattr(obj, 'to_python'):
              return obj.to_python()
          return super(CLIJSONEncoder, self).default(obj)