Change Python's API to handle the new `rp_error` and its two variations: `DocumentError` and `SimpleError`.