Python API JSON-Adapted