integrate java with python, java as client, python as server