How can I send a data array back and forth between java and python?
I've worked on similar project. Here's brief outline of what Java and Python was doing respectively.
Java
We used Java as a main server for receiving requests from clients and sending back responses after some data manipulation. 
Python
Python was in charge of data manipulation or calculation. Data was sent from Java via socket network. We first defined the data we needed in string format, then cncerted them into bytes in order to have them semt via socket network. 
Since there were limitations, though, using socket network, I changed it to Rest Api using Python Flask. In that way we could easily communicate with, not only but in this case mainly, Java with key-value json format. In this way, I was able to recieve any data type that could be passed through Api including array object you mentioned.
I have a java program and I need it to get some data calculated by a python script. 
I've already got java to send an integer to python via jython's PythonInterpreter and displayed it, but I can't recover it to make other operations. Also, it would be great to send a full integer array rather than a single integer but I can't wrap my mind arround PyObjects and how to use them.
Is there any useful tutorial that covers arrays? I've been searching for a while but I just find integer and float related tutorials.