remove addhost file, add python based json_escape function