How to link python code to android application developed in java?

I have to develop an android application which makes use of machine learning algorithms at the back end. Now, for developing android app I use Java and for implementing the machine learning algorithms I use python.

My question is how to link the python code to android app written in java. That is suppose my python code generates an output, now how to send this data to android application?