I recommend you create a Python API with the correct processing and consume it in your Kotlin app, if it must be due to the processing that occurs.